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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/40139
2
 
3
template struct A
4
{
5
  static int i;
6
};
7
 
8
template int A::i = { A::~A }; // { dg-error "non-static member function" }
9
 
10
template class A<0>;
11
 
12
struct X { };
13
 
14
int i1 = X::~X;                 // { dg-error "non-static member function" }
15
int i2 = &X::~X;              // { dg-error "address of destructor" }
16
int i3 = &A<0>::~A;              // { dg-error "address of destructor" }

powered by: WebSVN 2.1.0

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