------- 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

Reply via email to