URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Origin: Ivan Godard
|
// Origin: Ivan Godard
|
// Volker Reichelt
|
// Volker Reichelt
|
|
|
// PR c++/13797: ICE invalid nontype template parameter
|
// PR c++/13797: ICE invalid nontype template parameter
|
|
|
template struct A
|
template struct A
|
{
|
{
|
typedef A<0> B; // { dg-error "previous declaration" }
|
typedef A<0> B; // { dg-error "previous declaration" }
|
template struct B {}; // { dg-error "not a valid type|typedef" }
|
template struct B {}; // { dg-error "not a valid type|typedef" }
|
};
|
};
|
|
|
A<0> a;
|
A<0> a;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.