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] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do compile }
// { dg-do compile }
// Origin: gcc-bug@vogtner.de
// Origin: gcc-bug@vogtner.de
// PR c++/14106: ICE with typeof of function template.
// PR c++/14106: ICE with typeof of function template.
template
template
void j (T i)
void j (T i)
{
{
}
}
template
template
void instanciate () {
void instanciate () {
   static void (*fp) (T) = j;
   static void (*fp) (T) = j;
   __typeof__ (j) *p;   // { dg-error "unknown|invalid" }
   __typeof__ (j) *p;   // { dg-error "unknown|invalid" }
}
}
template void instanciate();
template void instanciate();
 
 

powered by: WebSVN 2.1.0

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