[Bug c++/49692] Constructor call mistaken for declaration
kortink at inter dot nl.net
gcc-bugzilla@gcc.gnu.org
Sat Jul 9 23:08:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49692
--- Comment #2 from John Kortink <kortink at inter dot nl.net> 2011-07-09 23:08:02 UTC ---
(In reply to comment #1)
> Redundant parens are always possible.
They shouldn't always be possible. It is a laxity in the grammar that
needlessly causes context dependencies. And, in this case, rejection of a
perfectly valid language construct.
Even if the context dependency is not removed, the interpretation of 'classname
(variablename)' as a constructor call should be considered by the parser.
More information about the Gcc-bugs
mailing list