[Issue 8887] New: static arrays should not be passed by value in extern C/C++ functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 24 13:01:59 PDT 2012
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.mitrovich at gmail.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at 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: -------
More information about the Digitalmars-d-bugs
mailing list