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]

r153843 - in /trunk/gcc: ChangeLog c-common.c t...


Author: dodji
Date: Tue Nov  3 10:44:36 2009
New Revision: 153843

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153843
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:
    trunk/gcc/testsuite/c-c++-common/dfp/builtin-offsetof.c
    trunk/gcc/testsuite/g++.dg/other/offsetof6.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-common.c
    trunk/gcc/testsuite/ChangeLog


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