This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]