Summary: ICE w/ non-boolean dot expression
                    sth.template_instance in static if
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from Shin Fujishiro <> 2010-09-05 23:25:53 PDT 
Using an syntax `something.template_instance` in static-if triggers an
assertion at expression.c(817).
struct S
    template P() {}
    alias P!() p;
static if (S.p) {}  // ICE
% dmd -o- -c test
Assertion failed: (pr != PREC_zero), function expToCBuffer, file expression.c,
line 817.

Assertion failure did not occur before svn r629.
% dmd-r628 -o- -c test
test.d(6): Error: expression S dotexp P!() is not constant or does not evaluate
to a bool

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

Reply via email to