blob: ca5f68e16114ce8caa909e1a9edec736172dde5d [file] [log] [blame]
// { dg-do compile { target c++2a } }
template<auto>
struct S { };
struct R { };
void
g (void)
{
S<R()> s; // { dg-error "mismatch" }
// { dg-message "treated as function" "note" { target *-*-* } .-1 }
S<R{}> s2;
S<int()> s3; // { dg-error "mismatch" }
// { dg-message "treated as function" "note" { target *-*-* } .-1 }
S<int{}> s4;
}