Summary: can't infer type in static assert
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Ellery Newcomer <> 2012-08-01 
19:27:38 PDT ---
with the attached file,

dmd multi_index.d

compiles, but

dmd multi_index.d -version=A

fails, giving

multi_index.d(13): Error: static assert  (is(typeof(delegate pure nothrow @safe
assert(this,"null this");
RARange r = void;
_error_ = __error;
))) is false
multi_index.d(41):        instantiated from here:

The difference is the following:

            version(A) {
                static assert(is(typeof(
                    RARange r = void;
                    auto h = r.front;
            }else {
                void flurby() {
                    RARange r = void;
                    auto h = r.front;

both should compile.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to