|
From: | john o goyo |
Subject: | PLEASE IGNORE [Re: Internal compiler error (should be diagnostic error)] |
Date: | Mon, 22 Jul 2024 12:00:20 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
Greetings, Andreas.
On 2024-05-09 06:21, Fischlin Andreas wrote:
Hi John,
I do not understand why this code should be legal PIM code. Within the scope of the local MODULE Inside the ident CardType is not known and you should not be able to export it.
I agree. This actually came from the ETHZ compiler, namely
Of course this has nothing to do with the gm2 compiler having difficulties to detect this coding error. But perhaps ‘unknown symbol’ means that? Admitted, not a very clear and helpful error message, but perhaps this is what’s going on?
Actually, I added the message "unknown symbol". Gm2 merely stopped with an "internal compiler error".
Sincerely,
john
Regards,Andreas
ETH ZurichProf. em. Dr. Andreas FischlinSystems Ecology - Institute of Biogeochemistry and Pollutant DynamicsCHN E 24Universitaetstrasse 168092 ZurichSWITZERLAND
+41 44 633-6090 phone+41 79 595-4050 mobile
Make it as simple as possible, but distrust it!________________________________________________________________________
On 8 May 2024, at 23:23, john o goyo <jog37@riddermarkfarm.ca> wrote:
Greetings, Gaius.
Here is Test.mod (greatly culled out of legacy working PIM code):
MODULE Test;
(*
* Produces internal compiler error
* Inside SymbolTable.GetScope, GetPsym() returns an unexpected token.
*)
TYPE CardType = CARDINAL;
MODULE Inside;
EXPORT
CardType;
END Inside;
END Test.
Here is what happens:
=> gm2-git -c Test.mod
cc1gm2: internal compiler error: GetScope: unknown symbol
0x6d6beb m2linemap_internal_error
/home/build/opt/gcc/src/gcc-git/gcc/m2/gm2-gcc/m2linemap.cc:253
[...]
(I added some output to gm2-compiler/SymbolTable.mod to report.)
Sincerely,
john
[Prev in Thread] | Current Thread | [Next in Thread] |