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

--- Comment #0 from David Simcha <> 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:
------- You are receiving this mail because: -------

Reply via email to