This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Static nested functions
On Wed, 1 Dec 2004, Zack Weinberg wrote:
> > (with appropriate tests for static declarations at block scope with
> > extern and static ones at file scope, and for auto declarations at
> > block scope which should shadow outer static or extern declarations
> > with the same name, and that auto declarations or nested function
> > definitions with implied auto conflict with extern declarations at
> > the same scope but not with other auto declarations at the same
> > scope).
>
> I can't parse this sentence; is it just a list of appropriate tests?
> If so, would you be willing to implement such a test and file a 4.1-
> target PR?
Yes, it's a list of appropriate tests. I can write the tests (minus the
diagnostics which may depend on the exact patch; the point of the tests
being that certain errors are detected and do not cause a crash, the exact
errors following the first one not being so important).
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)