From 1a769e8ef02893f737a88fe683add8ffea7affb1 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 8 Jul 2024 23:43:04 +0200 Subject: Document another bug --- BUGS | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'BUGS') diff --git a/BUGS b/BUGS index e10c720..156fa0b 100644 --- a/BUGS +++ b/BUGS @@ -20,3 +20,13 @@ 2. Recursive functions crash the compiler. foo :: () { return foo(); } /* breaks */ + +3. Global variables are broken both when being declared and assigned to + function calls and other globals. Both of these cased should be + illegal; globals if assigned at declaration should only be able to be + assigned to constant expressions. + + foo :: () int { return 42; } + x := 5; + x′ := x; /* breaks */ + x″ := foo(); /* breaks */ -- cgit v1.2.3