URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [nontype4.C] - Rev 847
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
// Origin: Ivan Godard <igodard@pacbell.net>
// Volker Reichelt <reichelt@gcc.gnu.org>
// PR c++/13797: ICE invalid nontype template parameter
template <int> struct A
{
typedef A<0> B; // { dg-message "previous declaration" }
template <B> struct B {}; // { dg-error "not a valid type|typedef" }
};
A<0> a;
Go to most recent revision | Compare with Previous | Blame | View Log