Struct with constructor in member returned using pointer on Windows x64
tim-dlang opened this issue · 1 comments
tim-dlang commented
While working on dlang/dmd#16570 I noticed, that LDC also returns structs containing a member with constructor using a hidden pointer. This is implemented using recursive hasCtor here:
Line 126 in 49e5732
This seems to be wrong. I have added a test for this in dlang/dmd#16570 with struct MemberWithCtor. The pull request for DMD only checks if the struct itself has a constructor and not if members also have constructors, like LDC.
The test in the pull request for DMD is based on a test in LDC, but LDC has it in folder runnable instead of runnable_cxx.
kinke commented
Thx, confirmed. Will fix.