[Bug c/17023] [3.3/3.4/4.0 Regression] ICE with nested functions in parameter declaration
jsm at polyomino dot org dot uk
gcc-bugzilla@gcc.gnu.org
Thu Oct 14 20:12:00 GMT 2004
------- Additional Comments From jsm at polyomino dot org dot uk 2004-10-14 20:12 -------
Subject: Re: [3.3/3.4/4.0 Regression] ICE with nested functions
in parameter declaration
On Thu, 14 Oct 2004, jsm at polyomino dot org dot uk wrote:
> expressions with longjmp, statement expressions seem more reasonable there
> (though if they attempt to jump into the body of the function that might
> be problematic).
Actually, given that we disallow statement expressions in prototypes
outside a function (even where they only mean [*] and have no further
significance) perhaps it does make sense to be stricter about saying that
old-style parameter declarations don't count as inside a function for this
purpose, and disallowing statement expressions there in general. But if
we do that then we should consider if declarations of parameters to nested
functions likewise are restricted and can't include statement expressions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17023
More information about the Gcc-bugs
mailing list