This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Middle end warnings cascading after C++ parsing errors
- From: Diego Novillo <dnovillo at google dot com>
- To: Jason Merrill <jason at redhat dot com>, gcc at gcc dot gnu dot org, Ian Taylor <iant at google dot com>
- Date: Fri, 17 Jun 2011 14:55:40 +0000
- Subject: Re: Middle end warnings cascading after C++ parsing errors
- References: <BANLkTimin9RxTgoyvF1Qdeg4C3wbyARATA@mail.gmail.com>
On Fri, Jun 17, 2011 at 14:47, Diego Novillo <dnovillo@google.com> wrote:
> if (flag_syntax_only || flag_wpa)
> Â return;
>
> to
>
> Âif (flag_syntax_only || flag_wpa || errorcount > 0)
> Â return;
To clarify. It would be 'seen_error ()' instead of 'errorcount > 0',
but the idea is the same.
Diego.