Ack, I mean A is incomplete at that point, not undefined. 9.2/2 is the
relevant section from the C++ standard for that minor point.
--
internal compiler error: offsetof within class template definition
https://bugs.launchpad.net/bugs/479504
You received this bug notification because you are a me
Public bug reported:
Binary package hint: gcc-4.3
The simple test case, gcc-ice-bare.cpp, is below. It should generate an
error (A is undefined at that point), but not an ICE! Other variations
are in gcc-ice.cpp.
$ cat gcc-ice-bare.cpp
template
struct A {
int d;
char a[__builtin_offset