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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [instantiate5.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Origin: Volker Reichelt 
4
 
5
// PR c++/11616: Incorrect line number in diagnostics
6
 
7
template  struct A
8
{
9
  static const int i=0;
10
};
11
 
12
int baz() { return A<0>::i; }
13
 
14
struct B
15
{
16
  static void foo (int);        // { dg-error "candidates" }
17
};
18
 
19
template  struct C
20
{
21
  virtual void bar() const { T::foo(); } // { dg-error "no matching function" }
22
};
23
 
24
C c;                            // { dg-error "instantiated" }

powered by: WebSVN 2.1.0

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