What does this mean?

Mike Stump mrs@windriver.com
Fri Apr 6 14:54:00 GMT 2001


> To: Mike Stump <mrs@windriver.com>
> Cc: nbecker@fred.net, gcc@gcc.gnu.org
> From: Gabriel Dos Reis <Gabriel.Dos-Reis@cmla.ens-cachan.fr>
> Date: 06 Apr 2001 23:48:26 +0200

> | When dumping unary and binary operators, g++ has a habit of adding ()
> | to indicate bindings, even when the semantics are clear, and not
> | present in the source.

> Yes and that may be inadequate.  Do you have a suggestion?

Well, one style of fix would be to create a string with the input and
then teach the lexer/parser to track substrings during parsing, so
that we can spit out the actual characters.  Another one would be to
retain the syntax tree, and use it instead of the digested tree.

I think if we got rid of extra parens and the unary + altogether, that
would essentially fix this to the point where people won't complain
about it.



More information about the Gcc mailing list