Debian Codegraph @

gcc/testsuite/g++.dg/parse/pr58898.C

raw
1 // PR c++/58898
2
3 template <typename = int>
4 struct Foo
5 {
6 Foo()
7 {
8 int t(int()); // { dg-warning "parentheses were disambiguated" }
9 }
10 };
11
12 int main()
13 {
14 int t(int()); // { dg-warning "parentheses were disambiguated" }
15 Foo<> a; // Error
16 }