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

error: declaration shadows a type alias #1933

Closed
Finkman opened this issue Oct 13, 2020 · 4 comments
Closed

error: declaration shadows a type alias #1933

Finkman opened this issue Oct 13, 2020 · 4 comments
Labels

Comments

@Finkman
Copy link
Contributor

Finkman commented Oct 13, 2020

I use fmt in-source and included #include <fmt/format.h>

Then the clang 10.0.1 compiler tells:

[build] /home/fins/Development/EclipseWorkspace/wipoframework/thirdparty/fmt/include/fmt/format.h:1601:11: error: declaration shadows a type alias in 'int_writer<OutputIt, Char, UInt>' [-Werror,-Wshadow]
[build]     using iterator = remove_reference_t<decltype(reserve(out, 0))>;
[build]           ^
[build] /home/fins/Development/EclipseWorkspace/wipoframework/thirdparty/fmt/include/fmt/format.h:1490:9: note: previous declaration is here
[build]   using iterator =
[build]         ^
@vitaut
Copy link
Contributor

vitaut commented Oct 13, 2020

What library version?

@Finkman
Copy link
Contributor Author

Finkman commented Oct 13, 2020

7.0.3

@vitaut
Copy link
Contributor

vitaut commented Oct 13, 2020

This has already been fixed in #1808.

@vitaut vitaut closed this as completed Oct 13, 2020
@vitaut vitaut added the invalid label Oct 13, 2020
@Finkman
Copy link
Contributor Author

Finkman commented Oct 14, 2020

sorry for the noise

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

No branches or pull requests

2 participants