URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [crash104.C] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/46046
template <class T>
struct foo
{
template <class U, class V = void>
struct type
{};
template <class V>
struct type<
typename T::template some_type<int>,
V
>
{};
};
template <class T>
class bar
{};
int main()
{
typedef foo<bar<int> > cont;
cont::type<char> obj; // { dg-error "cannot be defined" }
}
Go to most recent revision | Compare with Previous | Blame | View Log