Bug 11198 – Error messages for declaring a 'version' inside main() and other functions are unclear
Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-08T10:16:00Z
Last change time
2015-06-09T05:15:24Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
dlangbugad
Comments
Comment #0 by dlangbugad — 2013-10-08T10:16:44Z
Declaring a version for conditional compilation within functions gives the following errors:
Error: (condition) expected following version
Error: found '=' instead of statement
when using code such as `version = FeatureA;` in a function.
The errors do not specify that a version must be declared outside of function code blocks.