This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/88116] [8/9 Regression] ICE in gfc_convert_constant(): Unexpected type
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Dec 2018 01:58:07 +0000
- Subject: [Bug fortran/88116] [8/9 Regression] ICE in gfc_convert_constant(): Unexpected type
- Auto-submitted: auto-generated
- References: <bug-88116-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88116
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #5 from kargl at gcc dot gnu.org ---
(In reply to G. Steinmetz from comment #0)
> Silently accepted invalid code, produces a wrong result :
>
>
> $ cat z2.f90
> program p
> print *, [integer :: 1, [integer(8) :: 2, '3']]
> end
>
>
> $ gfortran-9-20181118 z2.f90 -static-libgfortran
> $ a.out
> 1 2 0
Gerhard, I don't know if you like to keep track of issues
that you submit or not. The above is quite strange if
integer(8) is replaced with integer or integer(4), I get
the expected error message. If it is integer(1), integer(2),
or integer(8), it silently compiles. If I do,
print *, [integer(8) :: 2, '3']
I et the expected error. Do you want to migrate this to its
own PR? If not, I'll do it when I get around to committing the
fix for the other issues.