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



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



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