From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2526 invoked by alias); 19 Sep 2006 11:10:30 -0000 Received: (qmail 2500 invoked by alias); 19 Sep 2006 11:10:20 -0000 Date: Tue, 19 Sep 2006 11:10:00 -0000 Message-ID: <20060919111020.2499.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/29129] [4.2 Regression] Strictly conforming code rejected In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "joseph at codesourcery dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-09/txt/msg01814.txt.bz2 List-Id: ------- Comment #2 from joseph at codesourcery dot com 2006-09-19 11:10 ------- Subject: Re: New: Strictly conforming code rejected On Mon, 18 Sep 2006, neil at gcc dot gnu dot org wrote: > Compile the following with -std=c99 -pedantic-errors > > void f(unsigned int [*]); > > foo.c:1: error: '[*]' not allowed in other than a declaration As the diagnostic indicates, "unsigned int [*]" is not a declaration with function prototype scope but a type name. Feel free to submit a DR regarding the exact meaning of "can only be used in declarations with function prototype scope". -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29129