Re: [PATCH] c++: Implement -Wvexing-parse [PR25814]

2020-10-23 Thread Jason Merrill via Gcc-patches
On 10/23/20 3:01 PM, Marek Polacek wrote: This patch implements the -Wvexing-parse warning to warn about the sneaky most vexing parse rule in C++: the cases when a declaration looks like a variable definition, but the C++ language requires it to be interpreted as a function declaration. This war

[PATCH] c++: Implement -Wvexing-parse [PR25814]

2020-10-23 Thread Marek Polacek via Gcc-patches
This patch implements the -Wvexing-parse warning to warn about the sneaky most vexing parse rule in C++: the cases when a declaration looks like a variable definition, but the C++ language requires it to be interpreted as a function declaration. This warning is on by default (like clang++). From