[Bug libfortran/83282] missing comma in format changes output

2024-02-17 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83282

--- Comment #6 from Jerry DeLisle  ---
$ gfc -Wall -Werror -pedantic pr83282.f90 
pr83282.f90:1:4:

1 |write(*,'(aa)') "ab", "bc"
  |1
Error: Unclassifiable statement at (1)

This is not very useful either. :o

[Bug libfortran/83282] missing comma in format changes output

2024-02-17 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83282

--- Comment #5 from Jerry DeLisle  ---
With -std=f95 we get:

$ gfc -std=f95 pr83282.f90 
pr83282.f90:1:13:

1 |write(*,'(aa)') "ab", "bc"
  | 1
Error: GNU Extension: Missing comma at (1)
pr83282.f90:2:17:

2 |write(*,'(a"bc")') "ab"
  | 1
Error: GNU Extension: Missing comma at (1)
pr83282.f90:3:17:

3 |write(*,'(a"cd"a)') "ab", "bc"
  | 1
Error: GNU Extension: Missing comma at (1)

and -pedantic gives:

$ gfc -pedantic  pr83282.f90 
pr83282.f90:1:13:

1 |write(*,'(aa)') "ab", "bc"
  | 1
Warning: GNU Extension: Missing comma at (1)
pr83282.f90:2:17:

2 |write(*,'(a"bc")') "ab"
  | 1
Warning: GNU Extension: Missing comma at (1)
pr83282.f90:3:17:

3 |write(*,'(a"cd"a)') "ab", "bc"
  | 1
Warning: GNU Extension: Missing comma at (1)

I wonder if we should reject the missing comma outright and only allow it for
-std=legacy?

[Bug libfortran/83282] missing comma in format changes output

2023-10-13 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83282

Jerry DeLisle  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED

[Bug libfortran/83282] missing comma in format changes output

2023-10-13 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83282

Jerry DeLisle  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |jvdelisle at gcc dot 
gnu.org
 CC||jvdelisle at gcc dot gnu.org

--- Comment #4 from Jerry DeLisle  ---
Assigning to myself

[Bug libfortran/83282] missing comma in format changes output

2023-10-12 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83282

anlauf at gcc dot gnu.org changed:

   What|Removed |Added

   Last reconfirmed|2017-12-05 00:00:00 |2023-10-12
 CC||anlauf at gcc dot gnu.org
  Component|fortran |libfortran
   Keywords||wrong-code

--- Comment #3 from anlauf at gcc dot gnu.org ---
I looked at parse_format_list and got lost in the forest...

@Jerry: it's a missing comma *after* the A descriptor triggering the error.