Bug 118219
Summary: | gjc internal error: Segmentation fault involving switch to a final var | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Larry Morell <morell> |
Component: | gcc | Assignee: | Andrew Haley <aph> |
Status: | CLOSED NEXTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | jakub |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-03-15 17:56:39 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Larry Morell
2004-03-13 20:12:16 UTC
*** Bug 118220 has been marked as a duplicate of this bug. *** 2004-03-15 Andrew Haley <aph> * parse.y (java_complete_lhs): Check that final variable has an initializer. Index: parse.y =================================================================== RCS file: /cvs/gcc/gcc/gcc/java/parse.y,v retrieving revision 1.472 diff -p -2 -c -r1.472 parse.y *** parse.y 28 Feb 2004 00:34:25 -0000 1.472 --- parse.y 15 Mar 2004 15:22:24 -0000 *************** java_complete_lhs (tree node) *** 11654,11658 **** } /* Accept final locals too. */ ! else if (TREE_CODE (cn) == VAR_DECL && DECL_FINAL (cn)) cn = fold_constant_for_init (DECL_INITIAL (cn), cn); --- 11654,11659 ---- } /* Accept final locals too. */ ! else if (TREE_CODE (cn) == VAR_DECL && DECL_FINAL (cn) ! && DECL_INITIAL (cn)) cn = fold_constant_for_init (DECL_INITIAL (cn), cn); Checked in to cvs HEAD. This will be fixed in gcc 3.5. |