This is the mail archive of the
mailing list for the GCC project.
Re: [patch] tree-ssa.c: Fix PR tree-optimization/17506.
On Sun, 2006-08-27 at 23:54 -0700, Andrew Pinski wrote:
> On Sun, 2006-08-27 at 22:20 -0700, Kazu Hirata wrote:
> > + fun_locus = &DECL_SOURCE_LOCATION(cfun->decl);
> > + if (locus->file != fun_locus->file
> > + || locus->line < fun_locus->line
> > + || locus->line > cfun->function_end_locus.line)
> > + inform ("%J%qD was declared here", var, var);
> I don't think this will work with nested functions, take the following
Plus this will produce the "note" when doing
#include inside a function which might not be something we want.