------- Comment #13 from dodji at gcc dot gnu dot org 2009-11-03 10:46 ------- Subject: Bug 38699
Author: dodji Date: Tue Nov 3 10:46:00 2009 New Revision: 153844 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153844 Log: 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. Added: branches/gcc-4_4-branch/gcc/testsuite/c-c++-common/ branches/gcc-4_4-branch/gcc/testsuite/c-c++-common/dfp/ branches/gcc-4_4-branch/gcc/testsuite/c-c++-common/dfp/builtin-offsetof.c branches/gcc-4_4-branch/gcc/testsuite/g++.dg/other/offsetof6.C Modified: branches/gcc-4_4-branch/gcc/ChangeLog branches/gcc-4_4-branch/gcc/c-common.c branches/gcc-4_4-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38699