-ferror-limit omits part of last error message

Date: Tue, 16 Aug 2011 18:20:07 +0200
From: Nikola Smiljanic <popizdeh@gmail.com>
Subject: Re: [cfe-dev] -ferror-limit omits part of last error message
To: Douglas Gregor <dgregor@apple.com>
Cc: Bjorn Reese <breese@mail1.stofanet.dk>, cfe-dev Developers
<cfe-dev@cs.uiuc.edu>
Message-ID:
<CAGq7tnPt-xoiEaw4imDgfj7Onaf++fxt9Ly=op0R2UGLHnwNFQ@mail.gmail.com>
Content-Type: text/plain; charset=“utf-8”

IMO, no. We should get it right. One way to do so would be to emit the
fatal error rather than the first error that would exceed the threshold,
rather than following the last error that is permitted within the threshold.
That’s probably easier in general.

So lets say our limit is 1 and there is only one error in our translation
unit. In this case we wouldn’t get the fatal error?

I would say we would have 1 error, its notes AND the fatal error indicating that no further error will be reported.

– Matthieu