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: 5 Jun 2006 00:03:06 -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 #7 from reichelt at gcc dot gnu dot org 2006-06-05 00:03 -------
Original testcase on mainline, 4.1 branch, and 4.0 branch.
However, we still ICE on member functions (static or non-static):
========================================
struct bar {
int foo();
};
int a = __builtin_offsetof(bar, foo);
========================================
bug.cc:5: internal compiler error: tree check: expected field_decl, have
baselink in fold_offsetof_1, at c-common.c:5997
Please submit a full bug report, [etc.]
Will post a patch for this problem, too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27601