Anonymous Login
2017-10-18 12:56 CEST

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

-Relationships
+Relationships

-Notes

~0005733

Caesar (developer)

Slightly more information might be helpful to reproduce this…

~0005751

Fulgen (reporter)

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

~0005752

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.

~0005753

Caesar (developer)

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

~0005758

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:
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

+Notes

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