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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [injected1.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++/13950, DR 176
2
 
3
template  struct Base { }; // { dg-error "" } candidate
4
 
5
struct D1: Base
6
{
7
  D1::Base* p1;
8
  D1::Base* p2;
9
  Base *p3;
10
  Base* p4;
11
};
12
 
13
struct D2: Base, Base
14
{
15
  D2::Base* p1;                 // { dg-error "" }
16
  D2::Base* p2;
17
  Base *p3;                     // { dg-error "" }
18
  Base* p4;
19
};
20
 
21
template 
22
struct D3: Base {
23
  typename D3::Base* p1;
24
  typename D3::template Base* p2;
25
};
26
template struct D3;
27
 
28
template 
29
struct D4: Base, Base {
30
  typename D4::Base* p1;        // { dg-error "" }
31
  typename D4::template Base* p2;
32
};
33
template struct D4;     // { dg-message "required" }

powered by: WebSVN 2.1.0

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