Bug 13236 – Invalid recursive struct field error not gagged in 'is'-expression
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-01T12:47:00Z
Last change time
2017-07-19T17:38:56Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
timon.gehr
Comments
Comment #0 by timon.gehr — 2014-08-01T12:47:36Z
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.