This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]