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: Wolfgang Bangerth
|
// Origin: Wolfgang Bangerth
|
|
|
// PR c++/7348
|
// PR c++/7348
|
// Access control for typename in function return type
|
// Access control for typename in function return type
|
|
|
class Outer {
|
class Outer {
|
template struct Inner {
|
template struct Inner {
|
typedef int T;
|
typedef int T;
|
T foo ();
|
T foo ();
|
};
|
};
|
public:
|
public:
|
Outer();
|
Outer();
|
};
|
};
|
|
|
template
|
template
|
typename Outer::Inner::T Outer::Inner::foo () {
|
typename Outer::Inner::T Outer::Inner::foo () {
|
return 1;
|
return 1;
|
}
|
}
|
|
|
template struct Outer::Inner<2>;
|
template struct Outer::Inner<2>;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.