OpenClonk Bugtracker - OpenClonk
View Issue Details
0001922OpenClonkEngine - C4Scriptpublic2017-06-05 15:262017-08-26 10:24
Assigned ToCaesar 
PrioritynormalSeverityminorReproducibilityhave not tried
PlatformOSOS Version
Product Version 
Target Version8.0Fixed in Version 
Summary0001922: "Expression not constant: (null)" is not helpful
Description"Expression not constant: (null)" is not really helpful as it doesn't tell where exactly the problem lies (line number neither helps because comments are not counted as a line).
Attached Files

2017-08-14 13:20   
Slightly more information might be helpful to reproduce this…
2017-08-21 18:00   
I am not really sure how, but the not-constant expression was an effect proplist. Can't tell more, unfortunately :/
2017-08-22 14:28   
I'll fix the error messages. The line number thing is something I will consider an urban legend till I see hard example-script evidence.
2017-08-22 14:29   
./c4script -e 'static const x = X();' is enough to reproduce.
2017-08-26 10:21   
Hi! There's been a check-in that references this bug. For more information you can visit the repository browser at this address:

Changeset ef1c275 by Julius Michaelis <>
Better error messages for non-constant expressions in 'static const' declarations
cf. 0001922

Issue History
2017-06-05 15:26FulgenNew Issue
2017-06-05 15:26FulgenTag Attached: Script
2017-08-05 13:58MaikelTarget Version => 8.0
2017-08-14 13:20CaesarNote Added: 0005733
2017-08-21 18:00FulgenNote Added: 0005751
2017-08-22 14:28CaesarNote Added: 0005752
2017-08-22 14:29CaesarNote Added: 0005753
2017-08-22 14:29CaesarAssigned To => Caesar
2017-08-22 14:29CaesarStatusnew => assigned
2017-08-26 10:21occNote Added: 0005758
2017-08-26 10:24CaesarStatusassigned => resolved
2017-08-26 10:24CaesarResolutionopen => fixed