Anonymous Login
2021-01-26 10:56 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001922OpenClonkEngine - C4Scriptpublic2017-08-26 10:24
Assigned ToCaesar 
PrioritynormalSeverityminorReproducibilityhave not tried
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




Caesar (developer)

Slightly more information might be helpful to reproduce this…


Fulgen (reporter)

I am not really sure how, but the not-constant expression was an effect proplist. Can't tell more, unfortunately :/


Caesar (developer)

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.


Caesar (developer)

./c4script -e 'static const x = X();' is enough to reproduce.


occ (reporter)

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
Date Modified Username Field Change
2017-06-05 15:26 Fulgen New Issue
2017-06-05 15:26 Fulgen Tag Attached: Script
2017-08-05 13:58 Maikel Target Version => 8.0
2017-08-14 13:20 Caesar Note Added: 0005733
2017-08-21 18:00 Fulgen Note Added: 0005751
2017-08-22 14:28 Caesar Note Added: 0005752
2017-08-22 14:29 Caesar Note Added: 0005753
2017-08-22 14:29 Caesar Assigned To => Caesar
2017-08-22 14:29 Caesar Status new => assigned
2017-08-26 10:21 occ Note Added: 0005758
2017-08-26 10:24 Caesar Status assigned => resolved
2017-08-26 10:24 Caesar Resolution open => fixed
+Issue History