URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Origin: Volker Reichelt
|
// Origin: Volker Reichelt
|
|
|
// PR c++/11076: ICE for invalid access declaration containing typename.
|
// PR c++/11076: ICE for invalid access declaration containing typename.
|
|
|
template struct A
|
template struct A
|
{
|
{
|
typedef A B;
|
typedef A B;
|
};
|
};
|
|
|
template struct C
|
template struct C
|
{
|
{
|
typedef typename A::B X;
|
typedef typename A::B X;
|
X::Y; // { dg-error "not a base type" }
|
X::Y; // { dg-error "not a base type" }
|
};
|
};
|
|
|
C c; // { dg-error "instantiated" }
|
C c; // { dg-error "instantiated" }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.