[Bug c++/27601] [4.0/4.1/4.2 Regression] ICE (in fold_offsetof_1, at c-common.c:5998) on strange offsetof
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jun 5 00:24:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list