This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Make parser revert digraph "<:"
"Giovanni Bajo" <giovannibajo@libero.it> writes:
| If people think it's *really* necessary, I can try propagating the
| DIGRAPH flag from cpplib up to the C++ parser. It looks to me that
| the less intrusive change would be modifying c_lex so that it
| stores this information in the value tree for the token (maybe
| making it a integer_zero_node, instead of null_tree, when
| the token came from a digraph?).
Zack sais that the information is already present. Are you saying
that it is not propagated?
This whole business of giving meaningful diagnostic is when people
write "nonsensical" programs. Each individual can bet on things that
will never happen; in practice, I rather not turn the coding of the
compiler into a lotery (yes, I know there few places like that).
-- Gaby