https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69650

--- Comment #22 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 23 Mar 2016, manu at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69650
> 
> --- Comment #20 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
> (In reply to David Malcolm from comment #18)
> > FWIW Bernd posted a different patch for this, here:
> >   https://gcc.gnu.org/ml/gcc-patches/2016-03/msg00598.html
> 
> FWIW, if that works for all testcases here, it seems a better solution. Even 
> if
> it misses some corner-case, it seems a better design to catch this invalid
> input at the caller and give an error than try to guess in line-map.c what the
> caller was trying to do and recover somehow.

Yes, but not sure if issuing an error is ok at this point - I know
there are some code generators out there that emit line directives
we currently warn about.  Other compilers may preprocess into
such as well.

Maybe we can put the error under some new flag though.

Reply via email to