digitalmars.D.bugs - [Issue 3196] New: Bad struct declaration before a anonymous delegate within the parameter list show a segment fault
- d-bugmail puremagic.com (25/25) Jul 20 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3196
- d-bugmail puremagic.com (14/14) Aug 05 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3196
- d-bugmail puremagic.com (32/32) Aug 06 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3196
- d-bugmail puremagic.com (6/6) Aug 06 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3196
- d-bugmail puremagic.com (6/6) Aug 06 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3196
- d-bugmail puremagic.com (12/12) Sep 03 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3196
http://d.puremagic.com/issues/show_bug.cgi?id=3196 Summary: Bad struct declaration before a anonymous delegate within the parameter list show a segment fault Product: D Version: 2.031 Platform: x86 OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: lifc0 yahoo.com.cn Try this on both linux and windows with dmd 2.031 give me a segment fault because of a null pointer reference. struct Foo { } void foo (Foo b, void delegate ()) { } void main () { foo(Foo(1), (){}); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 20 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3196 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug yahoo.com.au Summary|Bad struct declaration |Segfault(mtype.c) Bad |before a anonymous delegate |struct declaration before a |within the parameter list |anonymous delegate within |show a segment fault |the parameter list -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 05 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3196 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Segfault(mtype.c) Bad |Segfault(mtype.c) almost |struct declaration before a |any error involving a |anonymous delegate within |delegate inside a function |the parameter list | Severity|normal |regression Original title: "Bad struct declaration before a anonymous delegate within the parameter list show a segment fault" It's actually a lot more general than that. And it's a regression. auto x = (void){}; ---- ice.d(1): Error: cannot have parameter of type void ice.d(1): Error: cannot have parameter of type void <segfault> void main(){ (){}; (){}; } ice.d(1): Error: function has no effect in expression (__dgliteral1) <segfault> This smiley variant should compile without errors. But it just segfaults. --- static assert(!is(typeof((){(){} ;-() {};}))); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 06 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3196 *** Issue 3227 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 06 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3196 *** Issue 3228 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 06 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3196 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED 13:27:18 PDT --- Fixed dmd 1.047 and 2.032 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 03 2009