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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/23293
2
 
3
template < typename > struct P;
4
struct S;
5
 
6
void *unrelated_function()
7
{
8
  typedef S K;
9
  P < K > * p;
10
  return p;
11
}
12
 
13
template < typename U >
14
void generate_warning()
15
{
16
  U::x(); // { dg-error "P" }
17
}
18
 
19
int main()
20
{
21
  generate_warning< P < S > >();
22
}

powered by: WebSVN 2.1.0

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