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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [spec1.C] - Blame information for rev 315

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile }
2
 
3
// Origin: 
4
 
5
// Bug: ICE during invalid instantiation of member function
6
// which enclosing class is specialized.
7
 
8
template 
9
struct A
10
{
11
    void f(T) {}
12
};
13
 
14
template<>
15
struct A
16
{
17
    void f(int) {}
18
};
19
 
20
template
21
void A::f(int);         // { dg-error "not match" }

powered by: WebSVN 2.1.0

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