Bug 8428 – [2.060 beta] ByLine -> Map -> Filter

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-07-24T19:25:00Z
Last change time
2012-07-30T13:07:54Z
Assigned to
nobody
Creator
dsimcha

Comments

Comment #0 by dsimcha — 2012-07-24T19:25:09Z
import std.algorithm, std.stdio; void main() { File("").byLine().map!"a"().filter!"a.length"(); } src\phobos\std\algorithm.d(1142): Error: function std.algorithm.map!("a").map!(ByLine!(char,char)).map is a nested function and cannot be accessed from std.algorithm.filter!("a.length").filter!(Result).filter
Comment #1 by eco — 2012-07-24T19:31:22Z
Isn't this the same as the other regression #5939?
Comment #2 by issues.dlang — 2012-07-24T20:21:38Z
> Isn't this the same as the other regression #5939? Yeah. It looks like it's probably either the same as bug #5939 or bug# 5941, which are _really_ annoying bugs.
Comment #3 by eco — 2012-07-24T21:28:33Z
(In reply to comment #2) > > Isn't this the same as the other regression #5939? > > Yeah. It looks like it's probably either the same as bug #5939 or bug# 5941, > which are _really_ annoying bugs. They are indeed. I hit bug #5941 just the other day doing the lambda changes in std.algorithm.
Comment #4 by issues.dlang — 2012-07-24T21:36:29Z
It's part of the cause of bug# 8339, which is what's really causing me trouble for some of what I've been trying to do of late.
Comment #5 by bugzilla — 2012-07-29T14:54:45Z
Then this is not a regression?
Comment #6 by issues.dlang — 2012-07-29T15:20:20Z
> Then this is not a regression? It compiles in dmd 2.059 and doesn't compile in 2.060, so it looks like a regression to me.
Comment #7 by andrei — 2012-07-30T13:07:54Z
This now compiles with Kenji's fix for http://d.puremagic.com/issues/show_bug.cgi?id=5939.