gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: cannot declare function


From: Gaius Mulley
Subject: Re: Fwd: cannot declare function
Date: Mon, 14 Oct 2024 04:21:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Gaius Mulley <gaiusmod2@gmail.com> writes:

> Benjamin Kowarsch <trijezdci@gmail.com> writes:
>
>> Gaius, the error messages in the presented case are really confusing. The 
>> compiler should know that it expects a function call with parentheses and 
>> then
>> report the missing parentheses accordingly. Instead, it sends the user on a 
>> wild goose chase. You may want to improve the error reporting for this.
>

Hi,

many thanks for the heads up - I've filed a bug report PR-117131 against
gm2 GCC-14.2.  For what it is worth it is fixed in the gm2 GCC-15
development branch, another candiate for back porting:

$ gm2 -c proc_test.mod 
proc_test.mod:3:20: error: In procedure ‘Calc’: syntax error, found ‘:’
    3 |     PROCEDURE Calc : CARDINAL;
      |                    ^
proc_test.mod:3:22: error: expecting one of: ‘FORWARD’ ‘END’ ‘BEGIN’ ‘CONST’ 
‘TYPE’ ‘VAR’ ‘PROCEDURE’ ‘MODULE’
    3 |     PROCEDURE Calc : CARDINAL;
      |                      ^~~~~~~~

regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]