[Bug fortran/93733] F2008: G0.d output editing for integer/logical/character data

2020-07-24 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93733 --- Comment #11 from Dominique d'Humieres --- There are two issues: (1) The standard is not diagnosed at run time. (2) The standard is not diagnosed at compile time when possible. This is pr28397.

[Bug fortran/93733] F2008: G0.d output editing for integer/logical/character data

2020-07-24 Thread jvdelisle at charter dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93733 jvdelisle at charter dot net changed: What|Removed |Added CC||jvdelisle at charter dot ne

[Bug fortran/93733] F2008: G0.d output editing for integer/logical/character data

2020-07-24 Thread thenlich at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93733 --- Comment #9 from Thomas Henlich --- I think this standard conformity check is only performed at compile-time, and can only work if the format is defined in a constant. So, changing the definition to: character(4), parameter :: fmt="(g0)" char

[Bug fortran/93733] F2008: G0.d output editing for integer/logical/character data

2020-07-22 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93733 --- Comment #8 from Dominique d'Humieres --- The problem is deeper than expected. Consider ! { dg-options "-std=f2008" } program g0d_ilc character(4) :: fmt="(g0)" character(6) :: fmt2="(g0.2)" !F2008: write(*, fmt) 23 write(*, fmt) .t

[Bug fortran/93733] F2008: G0.d output editing for integer/logical/character data

2020-07-14 Thread thenlich at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93733 --- Comment #7 from Thomas Henlich --- (In reply to Dominique d'Humieres from comment #6) > > Please explain, what valid code according to Fortran 2008 does -std=f2008 > > reject? > > FAIL: gfortran.dg/fmt_g0_4.f08 -O (test for excess errors

[Bug fortran/93733] F2008: G0.d output editing for integer/logical/character data

2020-07-14 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93733 --- Comment #6 from Dominique d'Humieres --- > Please explain, what valid code according to Fortran 2008 does -std=f2008 > reject? FAIL: gfortran.dg/fmt_g0_4.f08 -O (test for excess errors)

[Bug fortran/93733] F2008: G0.d output editing for integer/logical/character data

2020-07-14 Thread thenlich at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93733 --- Comment #5 from Thomas Henlich --- (In reply to Dominique d'Humieres from comment #4) > But reject valid too! AFAIU this cannot captured ay the format level. Please explain, what valid code according to Fortran 2008 does -std=f2008 reject?

[Bug fortran/93733] F2008: G0.d output editing for integer/logical/character data

2020-07-14 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93733 --- Comment #4 from Dominique d'Humieres --- > Agreed, that should fix the bug. But reject valid too! AFAIU this cannot captured ay the format level.

[Bug fortran/93733] F2008: G0.d output editing for integer/logical/character data

2020-07-14 Thread thenlich at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93733 --- Comment #3 from Thomas Henlich --- (In reply to Dominique d'Humieres from comment #2) > Does it look good? Agreed, that should fix the bug.

[Bug fortran/93733] F2008: G0.d output editing for integer/logical/character data

2020-07-14 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93733 --- Comment #2 from Dominique d'Humieres --- With --- ../_clean/gcc/fortran/io.c 2020-07-01 18:25:56.0 +0200 +++ gcc/fortran/io.c2020-07-14 11:06:50.0 +0200 @@ -894,7 +894,13 @@ data_desc: &for

[Bug fortran/93733] F2008: G0.d output editing for integer/logical/character data

2020-07-12 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93733 Dominique d'Humieres changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED