[Issue 11198] New: Error messages for declaring a 'version' inside main() and other functions is unclear

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 8 10:16:45 PDT 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 at puremagic.com
        ReportedBy: dlangbugad at sharklasers.com


--- Comment #0 from dlangbugad at 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: -------


More information about the Digitalmars-d-bugs mailing list