[Issue 12287] New: infinite loop on std.traits.moduleName on templated struct member

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 2 12:55:36 PST 2014


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: nobody at puremagic.com
        ReportedBy: oivind.loe at gmail.com


--- Comment #0 from Øivind <oivind.loe at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list