[Issue 3495] New: Segfault(typinf.c) instantiating D variadic function with too few arguments
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: nob...@puremagic.com ReportedBy: clugd...@yahoo.com.au --- Comment #0 from Don clugd...@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: ---
[Issue 3495] Segfault(typinf.c) instantiating D variadic function with too few arguments
http://d.puremagic.com/issues/show_bug.cgi?id=3495 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||patch --- Comment #1 from Don clugd...@yahoo.com.au 2009-11-11 07:57:22 PST --- CAUSE: if not enough arguments, tries to create a negatively-sized type info array! PATCH: expression.c, line 802 (DMD2 svn 241), at end of functionArguments(): --- // If D linkage and variadic, add _arguments[] as first argument -if (tf-linkage == LINKd tf-varargs == 1) +if (tf-linkage == LINKd tf-varargs == 1 arguments-dim = nparams) { Expression *e; e = createTypeInfoArray(sc, (Expression **)arguments-data[nparams], arguments-dim - nparams); arguments-insert(0, e); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3496] New: ICE ..\ztc\cgelem.c 3387
http://d.puremagic.com/issues/show_bug.cgi?id=3496 Summary: ICE ..\ztc\cgelem.c 3387 Product: D Version: unspecified Platform: Other OS/Version: Windows Status: NEW Keywords: ice-on-valid-code Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: dsim...@yahoo.com --- Comment #0 from David Simcha dsim...@yahoo.com 2009-11-11 09:51:33 PST --- struct Node { size_t _left; Node* left() { return cast(Node*) (_left 1); } bool useLeft() { return left is null; } } Result: Internal error: ..\ztc\cgelem.c 3387 This one is really hard to reproduce. If you change this test program in even very small ways, it's no longer reproduced. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3497] New: Emphasize Wiki4D more on main site
http://d.puremagic.com/issues/show_bug.cgi?id=3497 Summary: Emphasize Wiki4D more on main site Product: D Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: enhancement Priority: P2 Component: www.digitalmars.com AssignedTo: nob...@puremagic.com ReportedBy: jesse.k.phillip...@gmail.com CC: jesse.k.phillip...@gmail.com --- Comment #0 from Jesse Phillips jesse.k.phillip...@gmail.com 2009-11-11 19:11:57 PST --- This is in reference to a posting on the newsgroups: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.Darticle_id=100566 http://www.digitalmars.com/d/ already has several prominent links to Wiki4D such as Editors, More Tools, and Documentation comments. So here are some suggestions to improve its visibility: Have the 'future' link to: http://www.prowiki.org/wiki4d/wiki.cgi?LanguageDevel#FutureDirections Have 'D conference' link to: http://www.prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DConference Have 'D programming community' link to: http://www.prowiki.org/wiki4d/wiki.cgi?NeighborHood Have 'Debugging' link to: http://www.prowiki.org/wiki4d/wiki.cgi?DebugEnvironments Instead of 'GDC D Compiler' have 'Other D Compilers' link to: http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/StartingWithD/Compiler -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---