[Bug c++/57679] New: c++11: ICE on template type alias to enum
schlaffi at users dot sourceforge.net
gcc-bugzilla@gcc.gnu.org
Sat Jun 22 21:15:00 GMT 2013
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.
More information about the Gcc-bugs
mailing list