[Issue 3196] Segfault(mtype.c) almost any error involving a delegate inside a function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 6 00:00:23 PDT 2009


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


Don <clugdbug at 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




--- Comment #2 from Don <clugdbug at yahoo.com.au>  2009-08-06 00:00:22 PDT ---
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.

Another example from bug #3227:

auto x = (void){};
----
ice.d(1): Error: cannot have parameter of type void
ice.d(1): Error: cannot have parameter of type void
<segfault>

Other examples from bug #3228:

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


More information about the Digitalmars-d-bugs mailing list