www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9754] New: Bad codegen with 0-size args and -fPIC -O


           Summary: Bad codegen with 0-size args and -fPIC -O
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thecybershadow gmail.com

--- Comment #0 from Vladimir Panteleev <thecybershadow gmail.com> 2013-03-19
02:00:39 EET ---
void f(char[0] s1, string s2) { assert(s2.length); }
void main() { f("", "a"); }

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 18 2013