[Issue 6873] New: Multiple storage class is not allowed on template	argument
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Nov  1 06:31:12 PDT 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=6873
           Summary: Multiple storage class is not allowed on template
                    argument
           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: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2011-11-01 06:29:58 PDT ---
Code:
----
template Test(T)
{
    pragma(msg, T);
}
alias Test!(const shared int) X;
Output:
----
test.d(5): found 'const' when expecting '('
test.d(5): (arguments) expected following shared(int)
test.d(5): found 'X' when expecting ')' following template argument list
test.d(5): no identifier for declarator Test!(shared(int)
-- 
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