October 08, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11198

           Summary: Error messages for declaring a 'version' inside main()
                    and other functions is unclear
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: dlangbugad@sharklasers.com


--- Comment #0 from dlangbugad@sharklasers.com 2013-10-08 10:16:44 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------