http://d.puremagic.com/issues/show_bug.cgi?id=4630

           Summary: Primitive arguments to pure functions need not be
                    converted to const
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: dsim...@yahoo.com


--- Comment #0 from David Simcha <dsim...@yahoo.com> 2010-08-11 19:38:54 PDT ---
void fun(uint x) pure {
    pragma(msg, typeof(x));  // const(uint)
}

Implicitly converting x to const is completely pointless, since it's just a
stack variable with no indirection whatsoever.

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

Reply via email to