[Issue 2843] New: ICE with is-expression with invalid dot-expression in is-expression involving typeid expression

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 16 16:44:35 PDT 2009


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

           Summary: ICE with is-expression with invalid dot-expression in
                    is-expression involving typeid expression
           Product: D
           Version: 2.027
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: dhasenan at gmail.com


foo.bar is typeid(int);

Error message:
bug.d(3): Error: undefined identifier foo
bug.d(3): Error: no property 'bar' for type 'int'
bug.d(3): Error: incompatible types for ((1) is (&_D10TypeInfo_i6__initZ)):
'int' and 'object.TypeInfo'
bug.d(3): Error: is has no effect in expression (1 is &_D10TypeInfo_i6__initZ)
dmd: constfold.c:863: Expression* Identity(TOK, Type*, Expression*,
Expression*): Assertion `0' failed.
Aborted

Thankfully, it gives you the full error message first.


-- 



More information about the Digitalmars-d-bugs mailing list