This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66040] ICE on misplaced sequence in function
- From: "sgk at troutmask dot apl.washington.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 06 May 2015 21:39:41 +0000
- Subject: [Bug fortran/66040] ICE on misplaced sequence in function
- Auto-submitted: auto-generated
- References: <bug-66040-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66040
--- Comment #3 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Wed, May 06, 2015 at 09:09:57PM +0000, kargl at gcc dot gnu.org wrote:
> --- Comment #2 from kargl at gcc dot gnu.org ---
> This appears to be an intentional ICE (although I'm not sure why).
> The code in question is lines 2427-2430 in parse.c(verify_st_order).
>
>
> default:
> gfc_internal_error ("Unexpected %s statement in verify_st_order() at %C",
> gfc_ascii_statement (st));
>
The code in comments #1 and #, this diff generates an
error message without the ICE>
Index: parse.c
===================================================================
--- parse.c (revision 222724)
+++ parse.c (working copy)
@@ -2425,8 +2425,7 @@ verify_st_order (st_state *p, gfc_statem
break;
default:
- gfc_internal_error ("Unexpected %s statement in verify_st_order() at
%C",
- gfc_ascii_statement (st));
+ return false;
}
/* All is well, record the statement in case we need it next time. */