[Bug fortran/68676] ICE in gfc_match_formal_arglist when compiling gfortran.dg/submodule_10.f08
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Dec 4 09:59:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68676
--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Dominique d'Humieres from comment #1)
> See the thread starting at
> https://gcc.gnu.org/ml/fortran/2015-12/msg00030.html.
>
> Note that I don't see these failures on x86_64-apple-darwin14 (no valgrind
> error).
Please try the following patch. Using this patch, the compiler crashes reliably
for me, even on x86_64-linux where it didn't crash before.
--cut here--
Index: decl.c
===================================================================
--- decl.c (revision 231250)
+++ decl.c (working copy)
@@ -4692,7 +4692,7 @@ gfc_match_formal_arglist (gfc_symbol *progname, in
{
gfc_formal_arglist *head, *tail, *p, *q;
char name[GFC_MAX_SYMBOL_LEN + 1];
- gfc_symbol *sym;
+ gfc_symbol *sym = NULL;
match m;
gfc_formal_arglist *formal = NULL;
--cut here--
More information about the Gcc-bugs
mailing list