Thread overview
[Issue 7589] New: __traits(compiles) does not work with a template that fails to compile
Feb 26, 2012
kennytm@gmail.com
Feb 28, 2012
Walter Bright
February 26, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7589

           Summary: __traits(compiles) does not work with a template that
                    fails to compile
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: kennytm@gmail.com


--- Comment #0 from kennytm@gmail.com 2012-02-26 02:56:16 PST ---
Test case:

-------------------------------------------
struct T7589()
{
    void n;
}
static assert(!__traits(compiles, T7589!()));
-------------------------------------------

The regression is introduced in https://github.com/9rnsr/dmd/commit/b1031a06fab8cd9848f17e63cda0fd760db82afa for fixing bug 4269.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7589



--- Comment #1 from github-bugzilla@puremagic.com 2012-02-27 19:25:51 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/4d6cf6bcf813bc9b9ec59415b13d67e1475ba289 Merge pull request #771 from donc/bug7589

7589 __traits(compiles) does not work with a template that fails to compile

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7589


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: -------