This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/66040] ICE on misplaced sequence in function


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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]