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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [incomplete1.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
// { dg-do compile }
2
// Origin: Ivan Godard 
3
// PR c++/17447: Detect parameters of dependent types even in templates
4
 
5
struct B;   // { dg-error "forward declaration" }
6
template struct A {
7
 
8
    friend A& operator <<(A& a, B b) { return a; } // { dg-error "incomplete" }
9
    friend A& operator <<(A& a, T b) { return a; }
10
 
11
    void foo1(B b) {}   // { dg-error "incomplete" }
12
    void foo1a(T b) {}
13
 
14
    B foo2(void) {}  // { dg-error "incomplete" }
15
    T foo2a(void) {}
16
 
17
    void foo3(B b);
18
};

powered by: WebSVN 2.1.0

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