URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
/* PR c++/37556 */
|
/* PR c++/37556 */
|
/* { dg-do "compile" } */
|
/* { dg-do "compile" } */
|
|
|
struct A
|
struct A
|
{
|
{
|
void foo();
|
void foo();
|
};
|
};
|
|
|
typedef void (A::T)(); /* { dg-error "typedef name may not be a nested" } */
|
typedef void (A::T)(); /* { dg-error "typedef name may not be a nested" } */
|
|
|
void bar(T); /* { dg-message "note: declared here" } */
|
void bar(T); /* { dg-message "note: declared here" } */
|
|
|
void baz()
|
void baz()
|
{
|
{
|
bar(&A::foo); /* { dg-error "too many arguments" } */
|
bar(&A::foo); /* { dg-error "too many arguments" } */
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.