ImportC: typedef
C tag struct causes ImportC to emit erroneous "forward declared" struct definition.
#20911
Labels
Feature:ImportC
Pertaining to ImportC support
The following struct in C:
Produces the following output snippet in ImportC in file
bug.d
:The second "forward declared" struct declaration should never be present and causes a build error in DMD.
Command to get error:
$dmd bug.i -Hf=bug.d -verrors=0 -main
, compiling the resultant file then fails with duplicatestruct tagTIME_STRUCT
The text was updated successfully, but these errors were encountered: