This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: c-decl.c rewrite (2/3) no more different_binding_level/different_tu
"Joseph S. Myers" <jsm@polyomino.org.uk> writes:
> On Wed, 21 Jan 2004, Zack Weinberg wrote:
>
> > anyway. The semantics of C allow us to do all the merging anyway.
>
> This breaks required diagnostics for the following testcase (essentially
> from DR#011):
>
> void
> foo(void)
> {
> extern int i[];
> {
> extern int i[10];
> }
> sizeof(i);
> }
>
> See <http://groups.google.com/groups?th=2b5042029273bcc0> for more on the
> interpretation of the relevant requirements.
Could you add this to the testsuite?
--
- Geoffrey Keating <geoffk@geoffk.org>