[Bug c++/25814] Request for warning for parser ambiguity of function declarations and variable declarations with initializations
egall at gwmail dot gwu.edu
gcc-bugzilla@gcc.gnu.org
Thu Sep 1 13:04:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25814
Eric Gallager <egall at gwmail dot gwu.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egall at gwmail dot gwu.edu
--- Comment #8 from Eric Gallager <egall at gwmail dot gwu.edu> ---
Turns out there's actually an entire Wikipedia article on this issue:
https://en.wikipedia.org/wiki/Most_vexing_parse
It mentions that Scott Meyers talks about it in his "Effective STL" book, so
maybe if GCC adds a -Wvexing-parse option, it could have it be automatically
enabled by the -Weffc++ option.
More information about the Gcc-bugs
mailing list