http://d.puremagic.com/issues/show_bug.cgi?id=11360
Summary: [2.064 beta] Variant fails to compile with void function(). Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: opantm2+db...@gmail.com --- Comment #0 from Kapps <opantm2+db...@gmail.com> 2013-10-25 18:11:08 PDT --- Sample: import std.variant; void t1() { } void main() { void function() fn = &t1; Variant v = fn; } Compiling: dmd test.d /Users/kapps/dev/dmd/phobos/std/variant.d(517): Error: expression (**zis)() is void and has no value /Users/kapps/dev/dmd/phobos/std/variant.d(585): Error: template instance std.variant.VariantN!(32LU).VariantN.handler!(void function()) error instantiating /Users/kapps/dev/dmd/phobos/std/variant.d(535): instantiated from here: opAssign!(void function()) test.d(9): instantiated from here: __ctor!(void function()) /Users/kapps/dev/dmd/phobos/std/variant.d(535): Error: template instance std.variant.VariantN!(32LU).VariantN.opAssign!(void function()) error instantiating test.d(9): instantiated from here: __ctor!(void function()) test.d(9): Error: template instance std.variant.VariantN!(32LU).VariantN.__ctor!(void function()) error instantiating -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------