[Issue 12195] New: Cannot directly instantiate a template produced by aponymous template instantiation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 18 13:26:19 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12195

           Summary: Cannot directly instantiate a template produced by
                    aponymous template instantiation
           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: samukha at voliacable.com


--- Comment #0 from Max Samukha <samukha at voliacable.com> 2014-02-18 13:26:11 PST ---
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.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list