[Bug fortran/88052] Format contravening f2008 constraint C1002 permitted

2018-11-18 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88052 --- Comment #7 from Jerry DeLisle --- (In reply to harper from comment #5) > The error I found is not just violating a constraint in f2008 or above. > The same constraint with different wording is in f2003, f95 and f90. > If you want to allow

[Bug fortran/88052] Format contravening f2008 constraint C1002 permitted

2018-11-18 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88052 --- Comment #6 from kargl at gcc dot gnu.org --- (In reply to harper from comment #5) > The error I found is not just violating a constraint in f2008 or above. > The same constraint with different wording is in f2003, f95 and f90. > If you want

[Bug fortran/88052] Format contravening f2008 constraint C1002 permitted

2018-11-18 Thread harper at msor dot vuw.ac.nz
think that should be an option, not the default. On Fri, 16 Nov 2018, jvdelisle at gcc dot gnu.org wrote: > Date: Fri, 16 Nov 2018 19:08:12 + > From: jvdelisle at gcc dot gnu.org > To: John Harper > Subject: [Bug fortran/88052] Format contravening f2008 constraint C1002 >

[Bug fortran/88052] Format contravening f2008 constraint C1002 permitted

2018-11-17 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88052 --- Comment #4 from Jerry DeLisle --- Proposed patch: diff --git a/libgfortran/io/format.c b/libgfortran/io/format.c index f5d3158d21d..5ad57bef316 100644 --- a/libgfortran/io/format.c +++ b/libgfortran/io/format.c @@ -46,7 +46,8 @@ static

[Bug fortran/88052] Format contravening f2008 constraint C1002 permitted

2018-11-17 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88052 --- Comment #3 from Jerry DeLisle --- (In reply to john.harper from comment #0) --- snip --- > > If the second print statement is changed to > print "(AF9.6)",'pi =',4*atan(1.0) > then the error is correctly diagnosed. Note that in the

[Bug fortran/88052] Format contravening f2008 constraint C1002 permitted

2018-11-16 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88052 --- Comment #2 from Jerry DeLisle --- Well until now we were permitting this as an extension. We could choose to allow it only under -std=legacy or throw a runtime error. Usually we don't like to throw runtime errors for things if not absolutely

[Bug fortran/88052] Format contravening f2008 constraint C1002 permitted

2018-11-16 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88052 Dominique d'Humieres changed: What|Removed |Added Priority|P3 |P5