This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [C++ PATCH] Make parser revert digraph "<:"


Gabriel Dos Reis wrote:

>>> I would rather see the diagnostic as
>>>
>>>   error: check the spelling of the template-argument list; '<:' is a
>>>     digraph (another spelling for '[').  Insert a whitespace between
>>>     '<' and '::'.
>>
>> While this diagnostic is technically more accurate, I think it's both
>> more confusing and poorer English.  How's this?
>>
>> error: '<::' cannot begin a template-argument list
>
> The confusing thing about this suggestion is that the beginning of the
> template-argument list is not '<::'.

Ok. What about s/begin/appear at the start of/:

error: '<::' cannot appear at the start of a template-argument list
note: '<:' is an alternate spelling for '[', insert whitespace between '<' and
'::'

Giovanni Bajo



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