Bug 14123 – cannot compare typeid(object.Object) at compile time

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-02-04T11:50:00Z
Last change time
2015-02-07T20:38:23Z
Keywords
CTFE, pull
Assigned to
nobody
Creator
nilsbossung
Blocks
7151

Comments

Comment #0 by nilsbossung — 2015-02-04T11:50:32Z
--- cat > test.d << code static assert({ auto o = new Object; return typeid(o) is typeid(o); /* line 3 */ }()); code dmd -c test.d --- test.d(3): Error: cannot compare typeid(object.Object) at compile time test.d(4): called from here: (*() => **o is **o)() test.d(1): while evaluating: static assert((*() => **o is **o)()) ---
Comment #1 by k.hara.pg — 2015-02-05T03:07:03Z
Comment #2 by github-bugzilla — 2015-02-05T05:42:33Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3c195275a852d4aff6e33454cc700e2687898a01 fix Issue 14123 - cannot compare typeid(object.Object) at compile time https://github.com/D-Programming-Language/dmd/commit/ae5fffaa6ea81f5a0665e6f848615dfe44440ada Merge pull request #4383 from 9rnsr/fix14123 Issue 14123 - cannot compare typeid(object.Object) at compile time
Comment #3 by github-bugzilla — 2015-02-07T20:38:23Z