This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57679] New: c++11: ICE on template type alias to enum
- From: "schlaffi at users dot sourceforge.net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 22 Jun 2013 21:15:08 +0000
- Subject: [Bug c++/57679] New: c++11: ICE on template type alias to enum
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57679
Bug ID: 57679
Summary: c++11: ICE on template type alias to enum
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: schlaffi at users dot sourceforge.net
struct B{ enum C{}; };
template <typename T> using A=typename T::C;
A<B> d;
triggers an ICE:
y.cc:3:4: internal compiler error: Segmentation fault
I would expect that this is even valid code? The "struct B" embedding is not
needed --- I just thought that "using A=T" look very wired. llvm compiles
without complains.