www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12195] New: Cannot directly instantiate a template produced by aponymous template instantiation

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: samukha voliacable.com



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: -------
Feb 18 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12195


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




 alias f = foo!()!();
This is not allowed in D grammar. *** This issue has been marked as a duplicate of issue 1566 *** -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 18 2014