]> gcc.gnu.org Git - gcc.git/commit - gcc/c-parser.c
[multiple changes]
authorPaolo Bonzini <bonzini@gcc.gnu.org>
Thu, 17 Aug 2006 07:02:55 +0000 (07:02 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Thu, 17 Aug 2006 07:02:55 +0000 (07:02 +0000)
commit6d4d7b0eed1846e13f5dd75765696b2b6854af44
treea00c91d8a45badf842fef53d1a9a8662c9f6f24b
parente98a430b854487d164b042b9a1ab0cb6dba0ca25
[multiple changes]

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.

From-SVN: r116208
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-parser.c
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/offsetof6.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/offsetof7.C [new file with mode: 0644]
This page took 1.792332 seconds and 5 git commands to generate.