URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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();
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.