www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11375] New: Semantic 'no throw' error with -profile switch

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

           Summary: Semantic 'no throw' error with -profile switch
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: paolo.invernizzi gmail.com



01:32:13 PDT ---
This is compiled correctly without the '-profile' switch, it will fails
otherwise (DMD 2.063.2, 2.064.beta.4):

    module b;
    class B {
        this() {}
    }

    module a;
    import b;

    class C : B {}
    class D(X) : X {}
    alias D!(C) Z;

    dmd -profile a.d
    Error: 'a.C.this' is not no throw

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