r116208 - in /trunk/gcc: ChangeLog c-common.c c...
bonzini@gcc.gnu.org
bonzini@gcc.gnu.org
Thu Aug 17 07:03:00 GMT 2006
Author: bonzini
Date: Thu Aug 17 07:02:55 2006
New Revision: 116208
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116208
Log:
2006-08-17 Paolo Bonzini <bonzini@gnu.org>
PR c++/28573
* c-common.c (fold_offsetof_1): Add an argument and recurse down to it
or the INTEGER_CST. Fail on a CALL_EXPR.
(fold_offsetof): Pass new argument to fold_offsetof_1.
* c-parser.c (c_parser_postfix_expression): Don't include a NULL
operand into an INDIRECT_REF.
* c-typeck.c (build_unary_op): Adjust call to fold_offsetof.
cp:
2006-08-17 Paolo Bonzini <bonzini@gnu.org>
PR c++/28573
* semantics.c (finish_offsetof): Add new argument to fold_offsetof.
testsuite:
2006-08-17 Paolo Bonzini <bonzini@gnu.org>
PR c++/28573
* g++.dg/parse/offsetof6.C: New test.
* g++.dg/parse/offsetof7.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/parse/offsetof6.C
trunk/gcc/testsuite/g++.dg/parse/offsetof7.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/c-common.h
trunk/gcc/c-parser.c
trunk/gcc/c-typeck.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list