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

F14MapTest.cpp: fix compilation fail #2052

Closed
wants to merge 1 commit into from
Closed

Conversation

xnhp0320
Copy link

@xnhp0320 xnhp0320 commented Aug 6, 2023

The 'dest1' has been deduced to two parameters: std:pair<int, double>
and std::initializer_list, not an initializer_list of std::pair.

add an extra braces to pass compilation.
Not sure if this is a compiler bug.

gcc --version

gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

The 'dest1' has been deduced to two parameters: std:pair<int, double>
and std::initializer_list, not an initializer_list of std::pair.

add an extra braces to pass compilation.
@facebook-github-bot
Copy link
Contributor

@Orvid has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@Orvid
Copy link
Contributor

Orvid commented Jan 23, 2024

This is likely the result of a compiler bug, as the way it is currently written is intentional.

Excluding this test for the versions of GCC where it fails to compile would be a reasonable solution here.

@Orvid Orvid closed this Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants