This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27601] [4.0/4.1/4.2 Regression] ICE (in fold_offsetof_1, at c-common.c:5998) on strange 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: 7 Jun 2006 16:18:57 -0000
- Subject: [Bug c++/27601] [4.0/4.1/4.2 Regression] ICE (in fold_offsetof_1, at c-common.c:5998) on strange offsetof
- References: <bug-27601-12684@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from reichelt at gcc dot gnu dot org 2006-06-07 16:18 -------
Subject: Bug 27601
Author: reichelt
Date: Wed Jun 7 16:18:06 2006
New Revision: 114471
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114471
Log:
PR c++/27601
* cp-tree.h (finish_offsetof): Add prototype.
* semantics.c (finish_offsetof): New function.
* parser.c (cp_parser_builtin_offsetof): Call it instead of
fold_offsetof.
* pt.c (tsubst_copy_and_build): Likewise.
* g++.dg/ext/offsetof1.C: Test member functions.
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/cp-tree.h
branches/gcc-4_0-branch/gcc/cp/parser.c
branches/gcc-4_0-branch/gcc/cp/pt.c
branches/gcc-4_0-branch/gcc/cp/semantics.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/ext/offsetof1.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27601