[Issue 11230] [REG2.064a] Inexact mangling for template function literal.

2013-10-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11230



--- Comment #8 from github-bugzi...@puremagic.com 2013-10-16 21:27:36 PDT ---
Commit pushed to 2.064 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bdef38058bee65220f898216809b7101cd40cd14
Merge pull request #2662 from 9rnsr/fix11230

[REG2.064a] Issue 11230 - Inexact mangling for template function literal.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 11230] [REG2.064a] Inexact mangling for template function literal.

2013-10-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11230


Kenji Hara  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 11230] [REG2.064a] Inexact mangling for template function literal.

2013-10-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11230



--- Comment #7 from github-bugzi...@puremagic.com 2013-10-13 23:57:53 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/958c8593e3a8db3f904b9de8969e81333c49a148
fix Issue 11230 - Inexact mangling for template function literal.

https://github.com/D-Programming-Language/dmd/commit/fd862f455f7e33d3a0aae9016497d6c6b456d20a
Merge pull request #2662 from 9rnsr/fix11230

[REG2.064a] Issue 11230 - Inexact mangling for template function literal.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 11230] [REG2.064a] Inexact mangling for template function literal.

2013-10-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11230



--- Comment #5 from Kenji Hara  2013-10-13 22:52:39 PDT ---
Correct test case from bug 11249 comment#0.

import std.algorithm;
class A {
A[] as;
}

class B {
A[] as;
}

A visit(A a) {
a.as.map!(a => visit);
return null;
}

A visit(B b) {
b.as.map!(a => visit);
return null;
}

A visit() {
return null;
}

$ ../dmd/src/dmd -c -offail.o fail.d
../dmd/src/../../phobos/std/algorithm.d(415): Error: struct
fail.visit.MapResult!(__lambda2, A[]).MapResult failed semantic analysis
../dmd/src/../../phobos/std/algorithm.d(425): Error: this for _input needs to
be type MapResult not type MapResult!(__lambda2, A[])
../dmd/src/../../phobos/std/algorithm.d(430): Error: this for _input needs to
be type MapResult not type MapResult!(__lambda2, A[])
../dmd/src/../../phobos/std/algorithm.d(436): Error: this for _input needs to
be type MapResult not type MapResult!(__lambda2, A[])
../dmd/src/../../phobos/std/algorithm.d(448): Error: this for _input needs to
be type MapResult not type MapResult!(__lambda2, A[])
../dmd/src/../../phobos/std/algorithm.d(454): Error: this for _input needs to
be type MapResult not type MapResult!(__lambda2, A[])
../dmd/src/../../phobos/std/algorithm.d(459): Error: this for _input needs to
be type MapResult not type MapResult!(__lambda2, A[])
../dmd/src/../../phobos/std/algorithm.d(471): Error: this for _input needs to
be type MapResult not type MapResult!(__lambda2, A[])
../dmd/src/../../phobos/std/algorithm.d(479): Error: this for _input needs to
be type MapResult not type MapResult!(__lambda2, A[])
../dmd/src/../../phobos/std/algorithm.d(496): Error: this for _input needs to
be type MapResult not type MapResult!(__lambda2, A[])
../dmd/src/../../phobos/std/algorithm.d(411): Error: template instance
fail.visit.MapResult!(__lambda2, A[]) error instantiating
fail.d(18):instantiated from here: map!(A[])
fail.d(18): Error: template instance fail.visit.map!((a) => visit).map!(A[])
error instantiating

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 11230] [REG2.064a] Inexact mangling for template function literal.

2013-10-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11230



--- Comment #6 from Kenji Hara  2013-10-13 22:53:28 PDT ---
*** Issue 11249 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 11230] [REG2.064a] Inexact mangling for template function literal.

2013-10-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11230


Kenji Hara  changed:

   What|Removed |Added

   Keywords||pull, rejects-valid
 Status|RESOLVED|REOPENED
 Resolution|INVALID |
Summary|Assertion failed: (type->ty |[REG2.064a] Inexact
   |!= Tstruct || ((TypeStruct  |mangling for template
   |*)type)->sym == this),  |function literal.
   |function semantic, file |
   |struct.c, line 876. |


--- Comment #4 from Kenji Hara  2013-10-13 22:49:29 PDT ---
This is actually a regression. The OP code should be compiled as same with
2.063.

Introduced by:
https://github.com/D-Programming-Language/dmd/commit/3395a17dfe506c7a0dcf7370e7e4de4d98391528

Compiler fix:
https://github.com/D-Programming-Language/dmd/pull/2662

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---