[Issue 6269] New: aliasing in IsExpression doesn't work when used inside a template constraint
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 8 06:09:14 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6269
Summary: aliasing in IsExpression doesn't work when used inside
a template constraint
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: mrmocool at gmx.de
--- Comment #0 from Trass3r <mrmocool at gmx.de> 2011-07-08 06:04:07 PDT ---
template Foo(T)
if (is(T U : U*))
{
pragma(msg, U);
}
Foo!(int*) f;
foo.d(4): Error: undefined identifier U, did you mean variable f?
__error
foo.d(6): Error: template instance Foo!(int*) error instantiating
foo.d(6): Error: Foo!(int*) is used as a type
--
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