www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15177] New: mixin + traits issue with 2.069 beta 1

https://issues.dlang.org/show_bug.cgi?id=15177

          Issue ID: 15177
           Summary: mixin + traits issue with 2.069 beta 1
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: trikko katamail.com

Created attachment 1555
  --> https://issues.dlang.org/attachment.cgi?id=1555&action=edit
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'

--
Oct 08 2015