public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/19333] [4.0 Regression] C front end accepts arrays of incomplete types
Date: Tue, 01 Feb 2005 00:10:00 -0000	[thread overview]
Message-ID: <20050201001002.2207.qmail@sourceware.org> (raw)
In-Reply-To: <20050108193643.19333.drab@kepler.fjfi.cvut.cz>


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-01 00:09 -------
Subject: Bug 19333

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	steven@gcc.gnu.org	2005-02-01 00:09:40

Modified files:
	gcc            : ChangeLog c-decl.c c-typeck.c 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/gcc.c-torture/compile: 20011130-1.c 
	gcc/testsuite/gcc.dg: 20030815-1.c array-7.c pr18596-3.c 
	gcc/testsuite/gcc.dg/noncompile: 20000901-1.c init-2.c init-4.c 

Log message:
	gcc/
	PR c/19333
	* c-decl.c (start_decl): Do not warn about arrays of elements with
	an incomplete type here.
	(grokdeclarator): Do it here by making a pedwarn an error.
	* c-typeck.c (push_init_level): If there were previous errors with
	the constructor type, do not warn about braces for initializers.
	(process_init_element): Likewise for excess initializer elements.
	
	testsuite/
	PR c/19333
	* testsuite/gcc.c-torture/compile/20011130-1.c: Reorder to make
	the test case valid.
	* testsuite/gcc.dg/20030815-1.c: Remove invalid tests.
	* testsuite/gcc.dg/array-7.c: Adjust expected result.
	* testsuite/gcc.dg/pr18596-3.c: Likewise.
	* testsuite/gcc.dg/noncompile/20000901-1.c: Likewise.
	* testsuite/gcc.dg/noncompile/init-2.c: Likewise.
	* testsuite/gcc.dg/noncompile/init-4.c: Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7349&r2=2.7350
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&r1=1.628&r2=1.629
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.415&r2=1.416
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4964&r2=1.4965
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/20011130-1.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/20030815-1.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/array-7.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr18596-3.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/noncompile/20000901-1.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/noncompile/init-2.c.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/noncompile/init-4.c.diff?cvsroot=gcc&r1=1.2&r2=1.3



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19333


  parent reply	other threads:[~2005-02-01  0:10 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-08 19:36 [Bug target/19333] New: Compilation SEGFAULTs with -O1 -finline-functions on the x86_64 architecture drab at kepler dot fjfi dot cvut dot cz
2005-01-08 19:42 ` [Bug tree-optimization/19333] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-08 19:43 ` pinskia at gcc dot gnu dot org
2005-01-08 19:46 ` pinskia at gcc dot gnu dot org
2005-01-08 19:50 ` pinskia at gcc dot gnu dot org
2005-01-09 22:20 ` rakdver at gcc dot gnu dot org
2005-01-10  8:51 ` rakdver at gcc dot gnu dot org
2005-01-11 14:15 ` drab at kepler dot fjfi dot cvut dot cz
2005-01-12  5:12 ` pinskia at gcc dot gnu dot org
2005-01-12 11:25 ` drab at kepler dot fjfi dot cvut dot cz
2005-01-14 23:47 ` rakdver at gcc dot gnu dot org
2005-01-27 16:06 ` steven at gcc dot gnu dot org
2005-01-27 16:35 ` steven at gcc dot gnu dot org
2005-01-28  9:25 ` steven at gcc dot gnu dot org
2005-01-28 11:10 ` joseph at codesourcery dot com
2005-01-29 13:20 ` [Bug tree-optimization/19333] [4.0 Regression] C front end accepts arrays of incomplete types steven at gcc dot gnu dot org
2005-01-29 13:25 ` pinskia at gcc dot gnu dot org
2005-01-29 13:25 ` [Bug c/19333] " pinskia at gcc dot gnu dot org
2005-01-31  9:55 ` steven at gcc dot gnu dot org
2005-02-01  0:10 ` cvs-commit at gcc dot gnu dot org [this message]
2005-02-01  0:15 ` steven at gcc dot gnu dot org
2005-02-01  0:20 ` steven at gcc dot gnu dot org
2005-02-01 11:56 ` debian-gcc at lists dot debian dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050201001002.2207.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).