Bug 15177 – [REG2.069.0-b1] mixin + traits issue with 2.069 beta 1

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-10-08T09:06:00Z
Last change time
2015-10-14T15:05:51Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
trikko

Attachments

IDFilenameSummaryContent-TypeSize
1555dmd-bug.zipSource code. Test it running 'dub'.application/zip579973

Comments

Comment #0 by trikko — 2015-10-08T09:06:57Z
Created attachment 1555 Source code. Test it running 'dub'. I get a strange error with dmd 2.069 b1. I can't understand what happen exactly but apparently traits allMember return an unrelated symbol. I reduced code using dustmite and manually. Attached code compile for me using dmd 2.068 on linux x64. Using dmd 2.069 b1 it fails: source/tests/utils.d-mixin-13(13): Error: undefined identifier '_D32TypeInfo_S7asserts12AssertResult6__initZ'
Comment #1 by k.hara.pg — 2015-10-09T02:55:43Z
Comment #2 by github-bugzilla — 2015-10-10T17:06:23Z
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f26ae0052ec82c61d63247096c78503caab8ce9d fix Issue 15177 - mixin + traits issue with 2.069 beta 1 https://github.com/D-Programming-Language/dmd/commit/d752f698caaaec89a52630e3255d576bb03cd9f9 Merge pull request #5172 from 9rnsr/fix15177 [REG2.069.0-b1] Issue 15177 - mixin + traits issue with 2.069 beta 1
Comment #3 by code — 2015-10-10T17:07:39Z
This was about __traits(allMembers, mymod) listing generated TypeInfoStructDeclaration members.
Comment #4 by github-bugzilla — 2015-10-14T15:05:51Z