www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10609] New: Refused UFCS in __traits(compile)

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

           Summary: Refused UFCS in __traits(compile)
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



int foo(int x) { return x; }
void main() {
    immutable x = 1;
    static if (__traits(compiles, foo(x)))
        pragma(msg, "OK1");
    static if (__traits(compiles, 1.foo))
        pragma(msg, "OK2");
    static if (__traits(compiles, x.foo))
        pragma(msg, "OK3");
}


Prints:
OK1
OK2


Expected:
OK1
OK2
OK3

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 11 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10609


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull



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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 11 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10609




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

https://github.com/D-Programming-Language/dmd/commit/b37e2c49ff026bd880eb49ed4e2dd70ee8ba1d0e
fix Issue 10609 - Refused UFCS in __traits(compile)

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


Issue 10609 - Refused UFCS in __traits(compile)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 16 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10609


Walter Bright <bugzilla digitalmars.com> changed:

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


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 16 2013