[Issue 7132] New: [tdpl] Exponential operator ^^ for integrals does not compile without any import

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 18 18:13:16 PST 2011


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

           Summary: [tdpl] Exponential operator ^^ for integrals does not
                    compile without any import
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrei at metalanguage.com


--- Comment #0 from Andrei Alexandrescu <andrei at metalanguage.com> 2011-12-18 18:13:15 PST ---
//import std.stdio;

void main() {
    uint base;
    uint exp;
    static assert(is(typeof(base ^^ exp) == uint));
}

test.d(8): Error: static assert  (is(typeof(__error) == uint)) is false

If the import is uncommented, the code compiles.

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