[Issue 4233] New: Eponymous template template members inaccessible
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue May 25 09:23:26 PDT 2010
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=4233
           Summary: Eponymous template template members inaccessible
           Product: D
           Version: 2.041
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: simen.kjaras at gmail.com
--- Comment #0 from Simen Kjaeraas <simen.kjaras at gmail.com> 2010-05-25 09:23:24 PDT ---
template foo( T ) {
  template foo( U ) {
    enum foo = is( U == T );
  }
}
static assert( foo!( int )!( int ) );
The above code does not compile, complaining that the ! should not be there.
Ok, so I use a FQN:
static assert( foo!( int ).foo!( int ) );
Error: undefined identifier template foo(U).foo
So apparently, there is no way to get access to the inner foo.
-- 
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