This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60692] New: ICE with template template parameter (invalid code)
- From: "alexbolz at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Mar 2014 22:01:54 +0000
- Subject: [Bug c++/60692] New: ICE with template template parameter (invalid code)
- Auto-submitted: auto-generated
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)]