www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12378] New: Compiler accepts any syntactically-valid code inside double-nested map predicate

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12378

           Summary: Compiler accepts any syntactically-valid code inside
                    double-nested map predicate
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thecybershadow gmail.com



07:37:32 EET ---
///////// test.d /////////
import std.algorithm;
import std.range;

void main()
{
    iota(1).map!(y0 =>
        iota(2).map!(x0 =>
            ANYTHING-GOES
        )
    );
}
//////////////////////////

This will compile but will not link.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 15 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12378


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
           Severity|normal                      |critical



https://github.com/D-Programming-Language/dmd/pull/3383

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 16 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12378




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b8380bc668d62040c2f91c98ccd694ace46fd2aa
fix Issue 12378 - Compiler accepts any syntactically-valid code inside
double-nested map predicate

https://github.com/D-Programming-Language/dmd/commit/4d3bbfb0639cc4f28272d816f795c0f12cd4f2e5


Issue 12378 - Compiler accepts any syntactically-valid code inside
double-nested map predicate

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 23 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12378


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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