www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13236] New: Invalid recursive struct field error not gagged

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

          Issue ID: 13236
           Summary: Invalid recursive struct field error not gagged in
                    'is'-expression
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: timon.gehr gmx.ch

pragma(msg, is(typeof({struct S{S x;}})));

fails with:

false
obug.d(2): Error: struct obug.__lambda2.S cannot have field x with same struct
type

This error should not occur.

--
Aug 01 2014