This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18963] [4.0 Regression] static and nested declarations cause an ice
- From: "phython at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2004 20:46:55 -0000
- Subject: [Bug c/18963] [4.0 Regression] static and nested declarations cause an ice
- References: <20041213184413.18963.phython@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From phython at gcc dot gnu dot org 2004-12-15 20:46 -------
Good, that is the result I was expecting. Anyway, removing the block following:
if (TREE_CODE (x) == FUNCTION_DECL && scope != file_scope
&& !TREE_PUBLIC (x) && !DECL_INITIAL (x))
from c-decl.c (pushdecl:2066) fixes the ice and the testcase works at -O0.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18963