Bug 12195 – Cannot directly instantiate a template produced by eponymous template instantiation

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-18T13:26:00Z
Last change time
2014-02-18T21:47:07Z
Keywords
rejects-valid
Assigned to
nobody
Creator
samukha

Comments

Comment #0 by samukha — 2014-02-18T13:26:11Z
template foo() { template foo() { } } alias f = foo!()!(); ---- bug.d(10): Error: semicolon expected to close alias declaration Fixing this may alleviate the pain from automatic tuple concatenation.
Comment #1 by k.hara.pg — 2014-02-18T21:47:07Z
(In reply to comment #0) > alias f = foo!()!(); This is not allowed in D grammar. *** This issue has been marked as a duplicate of issue 1566 ***