[Issue 3495] New: Segfault(typinf.c) instantiating D variadic function with too few arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 11 05:39:46 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3495

           Summary: Segfault(typinf.c) instantiating D variadic function
                    with too few arguments
           Product: D
           Version: 1.051
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 2009-11-11 05:39:45 PST ---
Segfaulting in createTypeInfoArray(): exps[i] is null.

Applies to DMD0.175 and later, including both D2.036 and D1.051.
---
void foo(int,...) {}

void bar(){
   foo();
}
---
arr.d(4): Error: function arr.foo (int _param_0,...) is not callable using
argum
ent types ()
arr.d(4): Error: expected 1 function arguments, not 0
<segfault>

Doesn't happen with C-style variadics.

-- 
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