blob: ab6401133cb89e40661810564a11d76f7aa0b1ff [file] [log] [blame]
// { dg-do compile }
// Origin: Giovanni Bajo <giovannibajo@libero.it>
// PR c++/10583: ICE using template function with invalid signature.
template <typename>
struct A
{
struct B
{};
};
template <typename T>
void func(A<T>::B* ) // { dg-error "6:variable or field .func. declared void" }
// { dg-error "expected" "" { target *-*-* } .-1 }
{
}
int main()
{
func<void>(0); // { dg-error "not declared|expression|;" }
}