http://d.puremagic.com/issues/show_bug.cgi?id=8887
Summary: static arrays should not be passed by value in extern C/C++ functions Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: andrej.mitrov...@gmail.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2012-10-24 13:01:56 PDT --- extern(C) void fail(int[4] x); extern(C) int[4] fail2(); extern(C++) void fail3(int[4] x); extern(C++) int[4] fail4(); These should fail since C/C++ compilers always pass arrays by pointer to first element. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------