blob: 1547c0f2f6cd9ed33528e160bce9db69ae27ac75 [file] [log] [blame]
// { dg-do compile }
// Origin: gcc-bug@vogtner.de
// PR c++/14106: ICE with typeof of function template.
template<class T>
void j (T i)
{
}
template<typename T>
void instanciate () {
static void (*fp) (T) = j;
__typeof__ (j) *p; // { dg-error "unknown|invalid" }
}
template void instanciate<float>();