This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r153844 - in /branches/gcc-4_4-branch/gcc: Chan...
- From: dodji at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 03 Nov 2009 10:46:01 -0000
- Subject: r153844 - in /branches/gcc-4_4-branch/gcc: Chan...
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