| 1 |
// PR c++/105229 |
| 2 |
// { dg-do compile { target c++20 } } |
| 3 |
// { dg-additional-options "-Wno-missing-template-keyword" } |
| 4 |
|
| 5 |
template <typename> void bar () |
| 6 |
{ |
| 7 |
[] <int> {}.operator () <> (); // { dg-error "expected primary-expression" } |
| 8 |
} |
| 9 |
void foo () |
| 10 |
{ |
| 11 |
bar<int> (); |
| 12 |
} |