This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28502] ICE with invalid declaration after definition
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Aug 2006 23:41:32 -0000
- Subject: [Bug c/28502] ICE with invalid declaration after definition
- References: <bug-28502-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from reichelt at gcc dot gnu dot org 2006-08-05 23:41 -------
Subject: Bug 28502
Author: reichelt
Date: Sat Aug 5 23:41:22 2006
New Revision: 115957
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115957
Log:
PR c/28502
* c-decl.c (validate_proto_after_old_defn): Return false on invalid
argument.
* gcc.dg/proto-1.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/proto-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28502