[Issue 10498] `__traits(compiles, ...)` affect program behaviour
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 29 00:56:14 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10498
Denis Shelomovskij <verylonglogin.reg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |regression
--- Comment #1 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-06-29 11:56:14 MSD ---
Another situation:
---
template triggerIssue(A...)
{ enum triggerIssue = __traits(compiles, { auto a = A[0]; }); }
template PackedGenericTuple(Args...)
{
alias Args Tuple;
enum e = triggerIssue!Args;
}
template T()
{
struct S{} // The fact `S` is in `T` causes the problem
alias T = PackedGenericTuple!S;
}
void main()
{
alias t = T!();
static assert(is(t.Tuple[0]));
}
---
The second one is reduced (no sure if correct) from regression failure.
--
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