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
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
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
>
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88052
Dominique d'Humieres changed:
What|Removed |Added
Priority|P3 |P5