[Issue 19213] goto skips declaration of variable in std.algorithm.iteration.joiner
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 5 22:17:59 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19213
Justin <mrjnewt at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mrjnewt at gmail.com
Severity|normal |regression
--- Comment #3 from Justin <mrjnewt at gmail.com> ---
I ran into this myself when attempting compile a service that we've had in
production for more than a year after updating to DMD 2.083.0. I was able to
create a small artificial repro case, runnable here:
https://run.dlang.io/is/ssx7CP
import std.algorithm;
import std.range;
void main()
{
static struct Rec
{
int foo;
}
auto results = [[1,2], [3,4]]
.map!(q => q.map!Rec.chunkBy!"a.foo")
.joiner;
}
This is definitely a regression as this code builds with DMD 2.080.1 and prior.
--
More information about the Digitalmars-d-bugs
mailing list