URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [crash11.C] - Rev 320
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
// Origin: priesnit@math.uni-goettingen.de
// PR c++/5767: ICE parsing typename with invalid scope.
template <template <typename> class TP>
struct A
{
template <typename T>
struct Template
{
typedef typename TP<T>::Type Type;
};
};
template <template <typename> class TP>
struct B
{
template <typename T>
struct Template
{
typedef typename A<A<TP>::Template> // { dg-error "mismatch|class template" }
::template Template<T>::Type Type; // { dg-error "" }
};
};
template <typename T>
struct C
{
typedef void Type;
};
int main()
{
typedef B<C>::Template<void>::Type Type; // { dg-error "does not name a type" }
}
Go to most recent revision | Compare with Previous | Blame | View Log