Bug 13200 – Assertion `protName' failed

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-24T15:51:00Z
Last change time
2015-02-18T03:40:22Z
Keywords
ice, pull
Assigned to
nobody
Creator
sfrijters

Comments

Comment #0 by sfrijters — 2014-07-24T15:51:27Z
With dmd v2.066-b5: module bug; enum Test; void main() { auto foo = __traits(getProtection, Test); } dmd: traits.c:395: Expression* semanticTraits(TraitsExp*, Scope*): Assertion `protName' failed. Aborted
Comment #1 by sfrijters — 2014-07-24T15:56:27Z
I got this error in my actual code before, but I now noticed that the line number is different: dmd: traits.c:481: Expression* semanticTraits(TraitsExp*, Scope*): Assertion `protName' failed. If needed I can run a Dustmite, but that would take a while. Please let me know if the previous information is enough to prepare a fix.
Comment #2 by sfrijters — 2014-11-28T22:18:27Z
Bug is still present in v2.067-b1, with slightly moved error line dmd: traits.c:516: Expression* semanticTraits(TraitsExp*, Scope*): Assertion `protName' failed.
Comment #3 by k.hara.pg — 2014-11-29T04:28:05Z
Comment #4 by k.hara.pg — 2014-11-29T04:59:42Z
Comment #5 by github-bugzilla — 2014-11-30T04:42:05Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ea5d59e23025a994237c12903c5baae1f0c51c10 fix Issue 13200 - Assertion `protName' failed Set `parent`, `protection`, `isdeprecated`, and `userAttribDecl` members of `EnumDeclaration` as same as class and struct declarations, even if its definition is opaque. https://github.com/D-Programming-Language/dmd/commit/ab5dbd53a4f217ef0e20149867211a82d50efc46 Merge pull request #4179 from 9rnsr/fix13200 Issue 13200 - Assertion `protName' failed
Comment #6 by github-bugzilla — 2015-02-18T03:40:22Z