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

           Summary: [CTFE] Cannot get effect to local variable through its
                    pointer
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: k.hara...@gmail.com


--- Comment #0 from Kenji Hara <k.hara...@gmail.com> 2011-11-09 03:27:55 PST ---
void formattedRead(int* val)
{
    *val = 1;
}
void test()
{
    int n;
    formattedRead(&n);
    assert(n == 1);  // fails!
}
static assert({ test(); return true; }());

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

Reply via email to