← Back to index
|
Original Bugzilla link
Bug 7589 – __traits(compiles) does not work with a template that fails to compile
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-26T02:56:00Z
Last change time
2012-02-27T23:39:27Z
Keywords
rejects-valid
Assigned to
nobody
Creator
kennytm
Comments
Comment #0
by kennytm — 2012-02-26T02:56:16Z
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
by github-bugzilla — 2012-02-27T19:25:51Z
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