[Issue 16183] [REG2.068] compile-time string concatenation fails with CTFE and char[] literal involved

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 10 12:45:41 UTC 2017


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

Mike <slavo5150 at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slavo5150 at yahoo.com

--- Comment #2 from Mike <slavo5150 at yahoo.com> ---
Further reduced:

void main()
{
    string g(string s) { return s; }     
    enum string y = ['f'] ~ g("g");
}

Can be worked around with:

void main()
{
    string g(string s) { return s; }     
    enum string y = cast(string)['f'] ~ g("g");
}

weird error :(

--


More information about the Digitalmars-d-bugs mailing list