Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type alias definition in class template linked to name in incorrect scope #10806

Open
marktsuchida opened this issue Apr 16, 2024 · 0 comments
Open

Comments

@marktsuchida
Copy link

When a C++ class template C contains a type alias using Y = typename D<T>::X (D being another class template), and C also contains a type with the same name as X, the ::X in the definition of C::Y gets incorrectly linked to C::X.

Screenshots
image

To Reproduce
Run doxygen in the directory extracted from repro.tgz.

Expected behavior
The ::X part of the definition of type alias C::Y should not be a link at all (or the X (but probably not ::X) could be a link to D::X).

Version
master (0a7e798), macOS arm64, built from source
1.10.0, macOS arm64, from Homebrew

Behavior seems to be the same back to 1.9.3.1. In 1.9.0–1.9.2 just the X (rather than the ::X) is a link, but with the same wrong target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants