This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37213] Declaration/expression ambiguity resolution does not extend beyond initializer
- From: "akyrtzi at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2008 09:19:00 -0000
- Subject: [Bug c++/37213] Declaration/expression ambiguity resolution does not extend beyond initializer
- References: <bug-37213-16625@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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