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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [crash13.C] - Blame information for rev 779

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile }
2
 
3
// Origin: Giovanni Bajo 
4
 
5
// PR c++/10583: ICE using template function with invalid signature.
6
 
7
template 
8
struct A
9
{
10
    struct B
11
    {};
12
};
13
 
14
template 
15
void func(A::B* )       // { dg-error "variable|template|expression" }
16
{
17
}
18
 
19
int main()
20
{
21
  func(0);      // { dg-error "not declared|expression|;" }
22
}

powered by: WebSVN 2.1.0

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