← Back to index
|
Original Bugzilla link
Bug 9754 – Bad codegen with 0-size args and -fPIC -O
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2013-03-18T17:00:00Z
Last change time
2014-06-28T13:00:58Z
Keywords
wrong-code
Assigned to
nobody
Creator
dlang-bugzilla
Comments
Comment #0
by dlang-bugzilla — 2013-03-18T17:00:39Z
void f(char[0] s1, string s2) { assert(s2.length); } void main() { f("", "a"); }
Comment #1
by safety0ff.bugz — 2014-05-31T03:25:11Z
I can't reproduce this locally.
Comment #2
by dlang-bugzilla — 2014-06-28T12:56:40Z
Apparently it was fixed by this pull request:
https://github.com/D-Programming-Language/dmd/pull/1752
Comment #3
by dlang-bugzilla — 2014-06-28T13:00:58Z
I think this bug might actually be a duplicate of issue 9722.