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


--- Comment #0 from Vladimir Panteleev <thecybershadow gmail.com> 2014-03-16
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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2014-03-16 19:15:47 PDT ---
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



--- Comment #2 from github-bugzilla puremagic.com 2014-03-23 03:41:20 PDT ---
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
Merge pull request #3383 from 9rnsr/fix12378

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