This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35321] [4.2/4.3 regression] ICE with invalid use of __builtin_offsetof
- From: "paolo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2008 17:10:09 -0000
- Subject: [Bug c++/35321] [4.2/4.3 regression] ICE with invalid use of __builtin_offsetof
- References: <bug-35321-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from paolo at gcc dot gnu dot org 2008-08-27 17:10 -------
Subject: Bug 35321
Author: paolo
Date: Wed Aug 27 17:08:40 2008
New Revision: 139628
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139628
Log:
2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/35321
* c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
/testsuite
2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/35321
* g++.dg/parse/offsetof8.C: New.
Added:
trunk/gcc/testsuite/g++.dg/parse/offsetof8.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35321