Bug 10770 – is(T BASE==enum) with tag enum T - AssertFail:'type' line 428 declaration.c

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-08-07T07:47:00Z
Last change time
2013-11-17T14:01:24Z
Keywords
ice, pull
Assigned to
nobody
Creator
qaston

Comments

Comment #0 by qaston — 2013-08-07T07:47:47Z
Code to reproduce --- enum Test2; static assert (is(Test2 BASE == enum)); --- error: Assertion failure: 'type' on line 428 in file 'declaration.c'
Comment #1 by henning — 2013-08-08T09:37:03Z
Comment #2 by github-bugzilla — 2013-11-17T13:59:23Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0d3bc27d3ad231bd3761038a011ff30b0954f965 fix Issue 10770 - is(T BASE==enum) with tag enum T - AssertFail:'type' line 428 declaration.c TypeEnum::toBasetype does not cause fwdref error for named opaque enum type https://github.com/D-Programming-Language/dmd/commit/2e026ba7f01726b7075fa39f1bb36ae969f493ac Merge pull request #2795 from 9rnsr/fix10770 Issue 10770 - is(T BASE==enum) with tag enum T - AssertFail:'type' line 428 declaration.c
Comment #3 by bugzilla — 2013-11-17T14:01:24Z