OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [error33.C] - Blame information for rev 816

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
/* PR c++/37556 */
2
/* { dg-do "compile" } */
3
 
4
struct A
5
{
6
  void foo();
7
};
8
 
9
typedef void (A::T)(); /* { dg-error "typedef name may not be a nested" } */
10
 
11
void bar(T); /* { dg-message "note: declared here" } */
12
 
13
void baz()
14
{
15
  bar(&A::foo); /* { dg-error "too many arguments" } */
16
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.