[Issue 7589] New: __traits(compiles) does not work with a template that fails to compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 26 02:56:18 PST 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 at puremagic.com
ReportedBy: kennytm at gmail.com
--- Comment #0 from kennytm at 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: -------
More information about the Digitalmars-d-bugs
mailing list