Thread overview
[Issue 16183] [REG2.068] compile-time string concatenation fails with CTFE and char[] literal involved
Jun 18, 2016
ag0aep6g@gmail.com
Jun 20, 2016
Puneet Goel
Jul 27, 2016
Walter Bright
Nov 10, 2017
Mike
Nov 10, 2017
Mike
Nov 11, 2017
Walter Bright
June 18, 2016
https://issues.dlang.org/show_bug.cgi?id=16183

ag0aep6g@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|compile-time string         |[REG2.068] compile-time
                   |concatenation fails with    |string concatenation fails
                   |CTFE and char[] literal     |with CTFE and char[]
                   |involved                    |literal involved
           Severity|normal                      |regression

--- Comment #1 from ag0aep6g@gmail.com ---
Works with 2.067.1 and earlier. Promoting to regression.

--
June 20, 2016
https://issues.dlang.org/show_bug.cgi?id=16183

Puneet Goel <puneet@coverify.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |puneet@coverify.org

--
July 27, 2016
https://issues.dlang.org/show_bug.cgi?id=16183

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE
                 CC|                            |bugzilla@digitalmars.com

--
November 10, 2017
https://issues.dlang.org/show_bug.cgi?id=16183

Mike <slavo5150@yahoo.com> changed:

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

--- Comment #2 from Mike <slavo5150@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 :(

--
November 10, 2017
https://issues.dlang.org/show_bug.cgi?id=16183

--- Comment #3 from Mike <slavo5150@yahoo.com> ---
potential fix: https://github.com/dlang/dmd/pull/7298

--
November 11, 2017
https://issues.dlang.org/show_bug.cgi?id=16183

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/4ae9018f971c04923f1385c3b25f6cee3c1603f4 Fix Issue 16183 - [REG2.068] compile-time string concatenation fails with CTFE and char[] literal involved

https://github.com/dlang/dmd/commit/12964b358fbe1b1c12fbfbae4a6d05109873a9a7 Merge pull request #7298 from JinShil/fix16183

Fix Issue 16183 - [REG2.068] compile-time string concatenation fails … merged-on-behalf-of: Walter Bright <WalterBright@users.noreply.github.com>

--
November 11, 2017
https://issues.dlang.org/show_bug.cgi?id=16183

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--
November 11, 2017
https://issues.dlang.org/show_bug.cgi?id=16183

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--
November 30, 2017
https://issues.dlang.org/show_bug.cgi?id=16183

--- Comment #5 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/4ae9018f971c04923f1385c3b25f6cee3c1603f4 Fix Issue 16183 - [REG2.068] compile-time string concatenation fails with CTFE and char[] literal involved

https://github.com/dlang/dmd/commit/12964b358fbe1b1c12fbfbae4a6d05109873a9a7 Merge pull request #7298 from JinShil/fix16183

--