D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4233 - Eponymous template template members inaccessible
Summary: Eponymous template template members inaccessible
Status: RESOLVED DUPLICATE of issue 242
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 critical
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-25 09:23 UTC by Simen Kjaeraas
Modified: 2014-02-15 02:45 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Simen Kjaeraas 2010-05-25 09:23:24 UTC
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.
Comment 1 Don 2010-05-25 13:33:59 UTC
This is yet another duplicate of the oldest open DMD enhancement in Bugzilla. It's probably worth voting for bug 242.

*** This issue has been marked as a duplicate of issue 242 ***