[Bug c++/49689] Using offsetof of an incomplete class template in static_assert causes gcc to crash

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jul 9 10:12:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49689

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-07-09 10:12:36 UTC ---
Confirmed as a dup, 4.7 gives:

oo.cc: In instantiation of ‘foo<int>’:
oo.cc:12:14:   required from here
oo.cc:6:7: error: invalid use of incomplete type ‘struct foo<int>’
oo.cc:4:8: error: declaration of ‘struct foo<int>’

*** This bug has been marked as a duplicate of bug 49085 ***



More information about the Gcc-bugs mailing list