------- 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