[Issue 8691] Stack overflow with recursive struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 4 17:55:51 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8691


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-04 17:49:56 PDT ---
I can fix this but I need a little help with the error implementation. After
adding a check I end up with:

mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type
mymod.d(3): Error: struct test.Foo cannot have field foos with same struct type

Anyone savvy enough with DMD knows how to avoid spawning so much errors?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list