Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
July 17, 2011 [Issue 6341] New: Segfault with variadic delegate parameter | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6341 Summary: Segfault with variadic delegate parameter Product: D Version: D1 & D2 Platform: Other OS/Version: All Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: robert@octarineparrot.com --- Comment #0 from Robert Clipsham <robert@octarineparrot.com> 2011-07-17 22:17:36 BST --- When using dmd 2.054 the following fails with a bus error on OS X and a segfault on linux: ---- void print(void delegate(string...) dg) { dg(); } ---- This worked as expected in dmd 2.053. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 31, 2011 [Issue 6341] Segfault with variadic delegate parameter | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | http://d.puremagic.com/issues/show_bug.cgi?id=6341 --- Comment #1 from Robert Clipsham <robert@octarineparrot.com> 2011-07-31 15:18:48 BST --- Note that this happens regardless of the number of arguments when calling dg(). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 31, 2011 [Issue 6341] Segfault with variadic delegate parameter | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | http://d.puremagic.com/issues/show_bug.cgi?id=6341 --- Comment #2 from Robert Clipsham <robert@octarineparrot.com> 2011-07-31 15:26:40 BST --- This hack works as a workaround: ---- void print(void delegate(string) _dg) { void dg(string a...) { _dg(a); } dg(); } ---- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 24, 2011 [Issue 6341] Regression(2.054): Segfault with variadic delegate parameter | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | http://d.puremagic.com/issues/show_bug.cgi?id=6341 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #3 from Don <clugdbug@yahoo.com.au> 2011-08-24 04:50:35 PDT --- *** This issue has been marked as a duplicate of issue 6351 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation