[Bug fortran/88467] Silently accepts wrong array constructor
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Wed Dec 12 17:52:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88467
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-12-12
Ever confirmed|0 |1
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from 5.5 up to trunk (9.0). Compiling the test with 4.8 or 4.9 gives
errors
pr88467.f90:2.41:
print *, [integer :: 1, [integer(1) :: '3', 4]]
1
Error: Can't convert CHARACTER(1) to INTEGER(1) at (1)
pr88467.f90:3.41:
print *, [integer :: 1, [integer(2) :: '3', 4]]
1
Error: Can't convert CHARACTER(1) to INTEGER(2) at (1)
pr88467.f90:4.41:
print *, [integer :: 1, [integer(8) :: '3', 4]]
1
Error: Can't convert CHARACTER(1) to INTEGER(8) at (1)
pr88467.f90:5.42:
print *, [integer :: 1, [integer(16) :: '3', 4]]
1
Error: Can't convert CHARACTER(1) to INTEGER(16) at (1)
More information about the Gcc-bugs
mailing list