[Issue 14198] [REG2.067a] Link failure with Variant

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Mar 4 00:42:56 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14198

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
This reduces to:

---
import std.conv;

struct S
{
    ptrdiff_t function() fptr = &handler;

    static ptrdiff_t handler()
    {
        static if (is(typeof(to!(string)(false))))
        {
            to!(string)(false);
        }
        return 0;
    }

}

void main()
{
}
---
I don't think it has anything to do with 4335, but with emitting instantiations
done during a typeof.

--


More information about the Digitalmars-d-bugs mailing list