C++ PATCH: expressions in void context
Mark Mitchell
mark@codesourcery.com
Fri Sep 10 02:48:00 GMT 1999
>>>>> "Nathan" == Nathan Sidwell <nathan@acm.org> writes:
Nathan> The extra warning I thought you meant was on the `&fn'
Nathan> variant, which popped out on the g++.pt/explicit*.C
Nathan> cases. I did remove that one.
OK. I was very unclear in my response.
Nathan> Would you still like me to remove the warning about plain
Nathan> `fn'? I don't think it belongs in cplus_expand_expr_stmt.
I dunno. What's this warning good for? We should just have a single
warning for statements with no side-effects, I think. You should get
same warning for:
3;
f;
3 ? f : (x, g);
...
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc-patches
mailing list