| Thread overview | |||||||
|---|---|---|---|---|---|---|---|
|
January 13, 2016 [Issue 15564] Bogus non local error messages | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15564 --- Comment #1 from deadalnix <deadalnix@gmail.com> --- The query method : auto query(alias f, T...)(T args) shared { auto s = acquireSocket(); scope(exit) releaseSocket(s); return f(Host(config, s), args); } -- | ||||
January 18, 2016 [Issue 15564] Bogus non local error messages | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15564 Martin Nowak <code@dawg.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |code@dawg.eu --- Comment #2 from Martin Nowak <code@dawg.eu> --- Is this a regression? Does it affect any function literal? -- | ||||
January 18, 2016 [Issue 15564] Bogus non local error messages | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15564 --- Comment #3 from deadalnix <deadalnix@gmail.com> --- All function literals. It is also in the release so no regression, but it is a major blocker :) -- | ||||
January 20, 2016 [Issue 15564] Bogus non local error messages | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15564 Martin Nowak <code@dawg.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- Hardware|x86 |All OS|Mac OS X |All --- Comment #4 from Martin Nowak <code@dawg.eu> --- cat > bug.d << CODE struct Foo { void foo(alias f)() { f(2); } } void test() { Foo foo; foo.foo!(function(int a) => 2 * a)(); // works w/ function foo.foo!(function(a) => 2 * a)(); // doesn't work w/ function template } CODE dmd -c bug ---- bug.d(13): Error: template instance foo!(function (a) => 2 * a) cannot use local '__funcliteral1' as parameter to non-global template foo(alias f)() ---- This was already not possible in 2.066.1. -- | ||||
July 08, 2020 [Issue 15564] Bogus non local error messages | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15564 Simen Kjaeraas <simen.kjaras@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |simen.kjaras@gmail.com Resolution|--- |FIXED --- Comment #5 from Simen Kjaeraas <simen.kjaras@gmail.com> --- The underlying issue here seems to be issue 5710, which is fixed. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply