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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [spec1.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
 
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.