[Issue 7118] Calling a vararg function with float within scope(exit) causes segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 28 19:41:02 PST 2012


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|                            |WORKSFORME


--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2012-01-28 19:41:00 PST ---
I ported it to Phobos:
--------------------------
import std.c.stdarg;

void vararg ( ... )
{
}

void main(char[][] args)
{
    vararg(12.23); // no crash
}

void echo()
{
    scope(exit) vararg(12.23); // segf in line 5
}
------------------------
and it does not crash on Linux in 32 or 64 bit mode. Not for D1 nor D2. Maybe
it's a Tango specific problem.

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