https://issues.dlang.org/show_bug.cgi?id=23357
Adam D. Ruppe <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Adam D. Ruppe <[email protected]> --- I'd also want to test if 1) functions defined twice work right (i think they do but would want to confirm) and 2) if structs with the same name but different layouts do error. Same name, same layout should work in C. Same name, different layout C will allow if they are in different translation units, but for D, this gets a little bit awkward. We don't have the same compilation model (really hacking C into the import system was and remains a mistake, it just doesn't actually work) so we'd need to change the rule a bit. I'd propose that the D rule be if the structs are defined the same, allow the multiple definition and merge them into the same namespace. If not, then issue the multiple definition error. --
