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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [typeof9.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Origin: gcc-bug@vogtner.de
4
 
5
// PR c++/14106: ICE with typeof of function template.
6
 
7
template
8
void j (T i)
9
{
10
}
11
 
12
template
13
void instanciate () {
14
   static void (*fp) (T) = j;
15
   __typeof__ (j) *p;   // { dg-error "unknown|invalid" }
16
}
17
template void instanciate();

powered by: WebSVN 2.1.0

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