------- Comment #10 from manu at gcc dot gnu dot org 2007-02-01 12:16 ------- (In reply to comment #9) > Subject: Re: When using 'or' keyword, the error message speaks of a '||' > token > > "manu at gcc dot gnu dot org" <[EMAIL PROTECTED]> writes: > > | Unless someone decides to fix the whole C++ parser error handling, > | this and PR 28152 won't be fixed. > > I would refrain from sweeping generalization like the above. > Diagnostics with carret do not necessary require "fixing" the parser; > and, yet they can be implemented in a way that resolves this issue. >
I am not talking about the parser itself but about the way it handles errors. token->flags gets lost inside the machinery launched by a call to cp_parse_error. So I would like to know how you think this can be implemented (honestly!), perhaps I missed some other way to distinguish the 'or' token from '||'. -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14875