www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5362] New: checking $ in bracket is broken.

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

           Summary: checking $ in bracket is broken.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2010-12-21 13:37:42 PST ---
Created an attachment (id=851)
Patch for dmd r810

This is parser bug.
----
struct ellipsis{}
enum __dollar = ellipsis();
struct s{
    static auto opSlice(){}
    static auto opCall(A...)(A args){}
}
void main(){
    //s[];   // if remove comment, it is succeeded to compile.
    s($);
}
----

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 21 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5362


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2011-03-30
21:29:55 PDT ---
https://github.com/D-Programming-Language/dmd/commit/b2a59b0f7516febd17dbf913d046ba58682f4adc

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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 30 2011