Single error mode
Zack Weinberg
zack@codesourcery.com
Wed Sep 8 18:15:00 GMT 2004
Daniel Berlin <dberlin@dberlin.org> writes:
> On Sep 8, 2004, at 1:51 PM, Zack Weinberg wrote:
>
>> Daniel Berlin <dberlin@dberlin.org> writes:
>>
>>> On Sep 8, 2004, at 1:32 PM, Piotr Wyderski wrote:
>>>
>>>> Daniel Berlin wrote:
>>>>
>>>>> Error: Incorrect grammar.
>>>>
>>>> Right, thanks. :-) But, as I said, recovering should be enabled by
>>>> default.
>>>> :->
>>>
>>> It's probably actually quite a bit of code to make it *stop*
>>> recovering.
>>> Take a gander at cp/parser.c and you'll see what i mean.
>>
>> Nah, this should be buried in diagnostic.c - promote error() to
>> fatal() when the option is in effect.
>>
>
> Oooh, neat trick.
> never thought of that.
> Then wouldn't -Wfatal-errors do what he wants?
Why, yes, indeed, it would. Neat.
zw
More information about the Gcc
mailing list