This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49689] Using offsetof of an incomplete class template in static_assert causes gcc to crash
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 9 Jul 2011 10:12:37 +0000
- Subject: [Bug c++/49689] Using offsetof of an incomplete class template in static_assert causes gcc to crash
- Auto-submitted: auto-generated
- References: <bug-49689-4@http.gcc.gnu.org/bugzilla/>
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 ***