URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [qualttp5.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// Copyright (C) 2001 Free Software Foundation
// Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
// { dg-do compile }
template <class U> struct A
{
template <class T> class B {}; // { dg-error "candidates" }
};
template <template <class> class TT> void f()
{
TT<int> y;
y = 0; // { dg-error "no match" }
}
template <class T> struct C
{
void g() { f<A<T>::template B>(); } // { dg-error "instantiated" }
};
int main()
{
C<int> c;
c.g(); // { dg-error "instantiated" }
}
Go to most recent revision | Compare with Previous | Blame | View Log