[Issue 3416] New: Non-compilable template instantiation in is(typeof()) fails compilation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 18 11:25:02 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3416
Summary: Non-compilable template instantiation in is(typeof())
fails compilation
Product: D
Version: 2.035
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: samukha at voliacable.com
--- Comment #0 from Max Samukha <samukha at voliacable.com> 2009-10-18 11:25:00 PDT ---
template bar()
{
void bar()
{
a b; // invalid code
}
}
template foo()
{
enum foo = is(typeof(bar!()));
}
enum c = foo!();
test.d(19): Error: identifier 'a' is not defined
test.d(19): Error: a is used as a type
test.d(19): Error: variable Test.bar!().bar.b voids have no value
--
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