This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-11-11


1019. Dependent simple-template-ids in base-specifiers and mem-initializers

Section: 11.7  [class.derived]     Status: dup     Submitter: Doug Gregor     Date: 2010-01-12

Although accepted by several compilers and used in popular code, the grammar currently does not permit the use of a dependent template name in a base-specifier or mem-initializer-id, for example:

    template<typename T, typename U>
    struct X : T::template apply<U> { };

There does not seem to be a good reason to reject this usage.

Rationale (August, 2010):

This issue is a duplicate of issue 314.