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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [crash59.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
//PR c++/27329
2
 
3
template struct A                          // { dg-error "forward declaration" }
4
!                                               // { dg-error "expected unqualified-id" }
5
  ;
6
 
7
template struct A { int foo(); };          // { dg-error "not a template" }
8
 
9
int i = A<0>().foo();                           // { dg-error "not a template|invalid use" }
10
 
11
 
12
template struct B
13
!                                               // { dg-error "expected unqualified-id" }
14
  ;
15
 
16
template struct B { static int bar(); };   // { dg-error "not a template" }
17
 
18
int j = B<0>::bar();                            // { dg-error "not a template|incomplete type" }
19
 

powered by: WebSVN 2.1.0

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