https://issues.dlang.org/show_bug.cgi?id=8863
Bastiaan Veelo changed:
What|Removed |Added
CC||basti...@veelo.net
--- Comment #11 from Bast
https://issues.dlang.org/show_bug.cgi?id=8863
Vlad Levenfeld changed:
What|Removed |Added
CC||vlevenf...@gmail.com
--
https://issues.dlang.org/show_bug.cgi?id=8863
anonymous4 changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
|
http://d.puremagic.com/issues/show_bug.cgi?id=8863
--- Comment #1 from Kenji Hara 2012-11-07 05:12:10 PST ---
This is a corner case of fixing bug 8339, but I think the current behavior is
intended.
Let's try to replace the out parameter usage to a simple pointer in your code.
auto fun(T)(T* r
http://d.puremagic.com/issues/show_bug.cgi?id=8863
Walter Bright changed:
What|Removed |Added
CC||bugzi...@digitalmars.com
--- Comment #
http://d.puremagic.com/issues/show_bug.cgi?id=8863
--- Comment #3 from Kenji Hara 2012-11-14 00:13:59 PST ---
(In reply to comment #2)
> So I'd say it is a bug, and the fault is likely in
> TemplateInstance::hasNestedArgs().
I think that the rule should not be applied to the template type argu
http://d.puremagic.com/issues/show_bug.cgi?id=8863
--- Comment #4 from Walter Bright 2012-11-14
00:31:21 PST ---
The example you gave an example of a bug where a reference to a local is
returned, something entirely different.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cg
http://d.puremagic.com/issues/show_bug.cgi?id=8863
--- Comment #5 from Kenji Hara 2012-11-14 01:07:54 PST ---
(In reply to comment #4)
> The example you gave an example of a bug where a reference to a local is
> returned, something entirely different.
No, they are is related.
My argue is: the
http://d.puremagic.com/issues/show_bug.cgi?id=8863
--- Comment #6 from Kenji Hara 2012-11-14 01:08:01 PST ---
Furthermore, the original code had generated incorrect code silently. This
slight complicated code might cause access violation in 2.060 or earlier.
auto fun(T)(out T ret) {
// ret
http://d.puremagic.com/issues/show_bug.cgi?id=8863
--- Comment #7 from Walter Bright 2012-11-14
01:13:28 PST ---
I agree that the original code silently generated wrong code. So this isn't
really a regression.
But I think we can fix it. There is no way to make your example work, because
it is
http://d.puremagic.com/issues/show_bug.cgi?id=8863
--- Comment #8 from Kenji Hara 2012-11-14 02:05:18 PST ---
(In reply to comment #7)
> But I think we can fix it. There is no way to make your example work, because
> it is returning a reference to a local. But the original one can work, and
> t
http://d.puremagic.com/issues/show_bug.cgi?id=8863
--- Comment #9 from github-bugzi...@puremagic.com 2012-12-25 18:28:58 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/c6a41c414aa9177aef7dac6ac131addba20abf32
http://d.puremagic.com/issues/show_bug.cgi?id=8863
Walter Bright changed:
What|Removed |Added
Severity|regression |normal
--- Comment #10 from Walter Bri
https://issues.dlang.org/show_bug.cgi?id=8863
Steve Sobel changed:
What|Removed |Added
CC||s.sobell...@gmail.com
--
https://issues.dlang.org/show_bug.cgi?id=8863
Adam D. Ruppe changed:
What|Removed |Added
CC||destructiona...@gmail.com
--
https://issues.dlang.org/show_bug.cgi?id=8863
Iain Buclaw changed:
What|Removed |Added
Priority|P2 |P3
--
16 matches
Mail list logo