You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
The text was updated successfully, but these errors were encountered:
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:
ldc/gen/abi/abi.cpp
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.
The text was updated successfully, but these errors were encountered: