re PR c++/38699 (ICE using offsetof with pointer and array accesses)
Fix PR c++/38699 gcc/ChangeLog: PR c++/38699 * c-common.c (fold_offsetof_1): Issue errors when the member designator of the offsetoff expression is not legitimate. gcc/testsuite/ChangeLog: * c-c++-common/dfp/builtin-offsetof.c: New test. * g++.dg/other/offsetof6.C: Likewise. From-SVN: r153843
Showing
gcc/testsuite/g++.dg/other/offsetof6.C
0 → 100644
Please
register
or
sign in
to comment