OpenClonk Bugtracker - OpenClonk
View Issue Details
0001922OpenClonkEngine - C4Scriptpublic2017-06-05 15:262017-08-26 10:24
ReporterFulgen 
Assigned ToCaesar 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
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).
TagsScript
Attached Files

Notes
(0005733)
Caesar   
2017-08-14 13:20   
Slightly more information might be helpful to reproduce this…
(0005751)
Fulgen   
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 :/
(0005752)
Caesar   
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.
(0005753)
Caesar   
2017-08-22 14:29   
./c4script -e 'static const x = X();' is enough to reproduce.
(0005758)
occ   
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:
https://git.openclonk.org/openclonk.git/commitdiff/ef1c275227dbe65d45af90964918eaed5c36a159

Changeset ef1c275 by Julius Michaelis <gitter@liftm.de>
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