Bug 14520 – [REG2.067.0] string/alias template overload

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-04-29T05:05:00Z
Last change time
2015-06-17T21:05:46Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
dlang-bugzilla
See also
https://issues.dlang.org/show_bug.cgi?id=13374

Comments

Comment #0 by dlang-bugzilla — 2015-04-29T05:05:10Z
/////////// test.d ////////// int f(); mixin template M(alias a) {} mixin template M(string s) {} mixin M!f; ///////////////////////////// test.d(4): Error: f cannot be interpreted at compile time, because it has no available source code Introduced in https://github.com/D-Programming-Language/dmd/pull/4375
Comment #1 by dlang-bugzilla — 2015-04-30T00:57:15Z
This bug is the reincarnation of issue 13374 (the reduced code is different, but the original code was broken once again). The full timeline: - v2.060 : works - v2.061 : broken (https://github.com/D-Programming-Language/dmd/pull/599) - v2.066.1: fixed (https://github.com/D-Programming-Language/dmd/pull/3897) - v2.076.0: broken (https://github.com/D-Programming-Language/dmd/pull/4375)
Comment #2 by k.hara.pg — 2015-06-04T13:51:42Z
Comment #3 by github-bugzilla — 2015-06-05T17:09:33Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ea8c21a6ecbed6746a4eeffe3345a1b5c3cf738e fix Issue 14520 - string/alias template overload On the overload of alias and value template parameters, a function symbol should always prefer to alias parameter. It will be be consistent result for separate compilation. https://github.com/D-Programming-Language/dmd/commit/391d1e0d887514d901c33578365fc80587a14208 Merge pull request #4720 from 9rnsr/fix14520 [REG2.067.0] Issue 14520 - string/alias template overload
Comment #4 by github-bugzilla — 2015-06-17T21:05:46Z