[Issue 4322] "void initializer has no value" on struct/union members initialized to "void"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 16 12:42:20 PDT 2010


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


Graham Fawcett <graham.fawcett at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #664 is|0                           |1
           obsolete|                            |


--- Comment #6 from Graham Fawcett <graham.fawcett at gmail.com> 2010-06-16 12:42:14 PDT ---
Created an attachment (id=665)
patch for mtype.c

This extends my earlier patch by modifying mtype.c as well. I don't have a bare
case unfortunately, but this will compile properly with a patched compiler:

import std.algorithm;
import std.variant;
import std.stdio;

void main() {
  foreach (int v; map! "a.get!int" (variantArray(1,2,3)))
    writeln(v);
}

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