[Issue 1030] struct in delegate requires semicolon

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 18 15:32:54 PDT 2009


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


clugdbug at yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |
            Summary|ICE one-liner; struct in    |struct in delegate requires
                   |delegate                    |semicolon




------- Comment #6 from clugdbug at yahoo.com.au  2009-04-18 17:33 -------
This is really a totally different bug to the original one, and much less
severe. No longer an ICE -- it's a pretty tiny issue.

void main() {
        void delegate() test = {
                struct test2{}
        }
}
---
fog.d(4): expression expected, not 'struct'
fog.d(4): comma expected separating field initializers
fog.d(5): semicolon expected, not '}'
----


-- 



More information about the Digitalmars-d-bugs mailing list