This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/67758] [GCC 6 regression] ICE on invalid use of COMMON
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 04 Oct 2015 15:36:06 +0000
- Subject: [Bug fortran/67758] [GCC 6 regression] ICE on invalid use of COMMON
- Auto-submitted: auto-generated
- References: <bug-67758-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67758
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikael at gcc dot gnu.org
--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
If I compile the test as free form before r228458, I get the following ICE
[Book15] f90/bug% gfc pr67758.f90
pr67758.f90:1:26:
COMMON /FMCOM / X(80 000 000)
1
Error: Expected another dimension in array declaration at (1)
pr67758.f90:3:27:
COMMON /FMCOM / XX(80 000 000)
1
Error: Expected another dimension in array declaration at (1)
Segmentation fault: 11
Internal compiler error: Error reporting routines re-entered.
gfc: internal compiler error: Abort trap: 6 (program f951)
or if configured with --enable-checking=release
[Book15] f90/bug% gfcp pr67758.f90
pr67758.f90:1:26:
COMMON /FMCOM / X(80 000 000)
1
Error: Expected another dimension in array declaration at (1)
pr67758.f90:3:27:
COMMON /FMCOM / XX(80 000 000)
1
Error: Expected another dimension in array declaration at (1)
(null):0: confused by earlier errors, bailing out
After r228458, I get
[Book15] f90/bug% gfc pr67758.f90
pr67758.f90:1:26:
COMMON /FMCOM / X(80 000 000)
1
Error: Expected another dimension in array declaration at (1)
pr67758.f90:3:27:
COMMON /FMCOM / XX(80 000 000)
1
Error: Expected another dimension in array declaration at (1)
in gfc_format_decoder, at fortran/error.c:936
Internal compiler error: Error reporting routines re-entered.
then gfortran hangs.