Skip to content

Template specializations get copies of members of the primary template #11541

Open
@grisumbras

Description

@grisumbras

Template specialisations get copies of members of the primary template.

The bug is very easy to reproduce:

/// template
template <class T>
struct t {
  /// type
  using type = T;
};

/// template specialisation
template <>
struct t<int> {
  /// specialised type
  using type = int;
};

Docs for t<int> will have both versions of type: the correct one from the specialisation and the wrong one from the primary template. The problem is present in both HTML and XML output.

The bug is present in version 1.13.2 (and in the master branch as of this morning). The original commit that had introduced the bug appears to be ef4065a.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy