https://d.puremagic.com/issues/show_bug.cgi?id=12287

           Summary: infinite loop on std.traits.moduleName on templated
                    struct member
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from �ivind <[email protected]> 2014-03-02 12:55:35 PST ---
Compile of the following code never completes. If the struct is not a template,
the behavior is as expected. Don't know if this is a DMD or Phobos issue.
Running on 2.065.0


import std.stdio;
import std.traits;

struct X(T) {
    T i;
}

void main(){

    writeln(moduleName!((X!int).i));

}

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

Reply via email to