This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: What does this mean?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]