[Issue 5980] New: Can't pass __traits value as const(char)*

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 11 11:07:11 PDT 2011


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

           Summary: Can't pass __traits value as const(char)*
           Product: D
           Version: future
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: Jesse.K.Phillips+D at gmail.com
                CC: Jesse.K.Phillips+D at gmail.com


--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D at gmail.com> 2011-05-11 11:03:10 PDT ---
This worked in 2.052 but is failing to compile in the latest beta for 2.053.
This is used by LuaD.

struct A {
    int a;
}
void main() {
    foreach(field; __traits(allMembers, A))
    {    
            usefield(field);
    }

}

void usefield(const(char)* foo) {
}

-- 
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