https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117131

--- Comment #1 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Following on from the example code the bug report mentions that with gm2
gcc-14.2

proc_test.mod:3:22: In procedure «Calc»: syntax warning, «END» missing 
    3 |     PROCEDURE Calc : CARDINAL;
      |                      ^~~~~~~~
proc_test.mod:3:22: syntax warning, «;» missing 
proc_test.mod:6:13: In program module «proc_test»: syntax warning, «.» missing 
    6 |     END Calc;
      |             ^
proc_test.mod:1:8: module name at beginning «proc_test» does not match the name
at end «Calc»
    1 | MODULE proc_test;
      |        ^~~~~~~~~
proc_test.mod:3:15: In procedure «Calc»: procedure name at beginning «Calc»
does not match the name at end «CARDINAL»
    3 |     PROCEDURE Calc : CARDINAL;
      |               ^~~~
proc_test.mod:3:20: syntax error, found «:»
    3 |     PROCEDURE Calc : CARDINAL;
      |                    ^
proc_test.mod:3:22: procedure name at end «CARDINAL» does not match the name at
beginning «Calc»
    3 |     PROCEDURE Calc : CARDINAL;
      |                      ^~~~~~~~
proc_test.mod:6:9: In program module «proc_test»: module name at end «Calc»
does not match the name at beginning «proc_test»
    6 |     END Calc;
      |         ^~~~
proc_test.mod:6:13: syntax error, found «;»
    6 |     END Calc;
      |             ^
proc_test.mod:11:1: no scope active: compilation failed

Reply via email to