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++/57679] New: c++11: ICE on template type alias to enum


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.


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