[Bug c++/37213] Declaration/expression ambiguity resolution does not extend beyond initializer

akyrtzi at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Oct 8 09:20:00 GMT 2008



------- Comment #3 from akyrtzi at gmail dot com  2008-10-08 09:19 -------
And some bit of C++ standard wisdom:
C++ 6.8p1: "To disambiguate, the whole statement might have to be examined to
determine if it is an expression-statement or a declaration"

And there's this example given:

T(a)->m = 7; // expression-statement

I think the same applies to the example I gave:

T(a)(x,y)->m = 7; // should be an expression


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37213



More information about the Gcc-bugs mailing list