This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28294] [4.0/4.1/4.2 regression] ICE with invalid use of __builtin_offsetof
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jul 2006 09:29:40 -0000
- Subject: [Bug c++/28294] [4.0/4.1/4.2 regression] ICE with invalid use of __builtin_offsetof
- References: <bug-28294-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from reichelt at gcc dot gnu dot org 2006-07-15 09:29 -------
Subject: Bug 28294
Author: reichelt
Date: Sat Jul 15 09:29:32 2006
New Revision: 115466
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115466
Log:
PR c++/28294
* semantics.c (finish_offsetof): Use TREE_OPERAND for COMPONENT_REFs
only.
* g++.dg/ext/offsetof1.C: Add test with function pointer arithmetic.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/ext/offsetof1.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28294