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++/60692] New: ICE with template template parameter (invalid code)


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

            Bug ID: 60692
           Summary: ICE with template template parameter (invalid code)
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alexbolz at web dot de

The following (invalid) code results in an internal compiler error:

template <class>
struct T {};

template <template <class> class T>
struct X {};

template <class... A>
void fun(X<A...> const& p)
{
}

int main()
{
    fun(X<T>());
}

Using a single parameter instead of a parameter pack gives an error message:
error: type/value mismatch at argument 1

[GNU C++ (GCC) version 4.8.2 (x86_64-w64-mingw32)]


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