g++.old-deja/g++.other/anon7.C
Mark Mitchell
mark@codesourcery.com
Thu Jul 24 07:57:00 GMT 2003
> So you have to decide: What error messages do you want? If you don't
> want the "spurious errors" don't use push_srcloc/pop_srcloc.
The error messages are clearly spurious -- they talk about "including
anon7.C from anon7.C" when there is no #include directive.
> I suggest replacing the calls by:
>
> location_t save_location = input_location;
> input_location = DECL_SOURCE_LOCATION (f);
> ...
> input_location = save_location;
That approach sounds fine to me.
Since your patch caused this regression, would you please prepare and
test a patch to fix the problem?
Thanks,
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
More information about the Gcc
mailing list