D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7589 - __traits(compiles) does not work with a template that fails to compile
Summary: __traits(compiles) does not work with a template that fails to compile
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 regression
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2012-02-26 02:56 UTC by kennytm
Modified: 2012-02-27 23:39 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kennytm 2012-02-26 02:56:16 UTC
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.
Comment 1 github-bugzilla 2012-02-27 19:25:51 UTC
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