http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51289

             Bug #: 51289
           Summary: Template template alias causes ICE
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: pubb...@gmail.com


gcc version 4.7.0 20111112 (experimental) (GCC) 

Getting ICE when trying to use an alias to template template parameter:

template<typename a, template <typename, typename> class b>
struct foo {
  template <typename t>
  using type = b<a, t>;

  template <typename t>
  b<a, t> funca() {} // OK!

  template <typename t>
  type<t> funcb() {} // Compiler error! Should be have same behavior as funca.
};


main.cpp:10:9: internal compiler error: in lookup_template_class_1, at
cp/pt.c:7299

Reply via email to