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

Fix std::complex broken test macro definition #1594

Merged
merged 1 commit into from
May 17, 2024

Conversation

SergeyKopienko
Copy link
Contributor

@SergeyKopienko SergeyKopienko commented May 17, 2024

In this PR we fixing the invalid definition (the value 20210601 is incorrect) of

// According to https://gcc.gnu.org/develop.html#timeline use last known _GLIBCXX_ to check the version of libstdc++ : 20240426
#define _PSTL_TEST_COMPLEX_OP_BROKEN_GLIBCXX (__GLIBCXX__ > 0 && __GLIBCXX__ <= 20210601)

This invalid definition were introduced in the PR #1587 in the commit e527281

The correct definition should be (as in comment):

// According to https://gcc.gnu.org/develop.html#timeline use last known _GLIBCXX_ to check the version of libstdc++ : 20240426
#define _PSTL_TEST_COMPLEX_OP_BROKEN_GLIBCXX (__GLIBCXX__ > 0 && __GLIBCXX__ <= 20240426)

Signed-off-by: Sergey Kopienko <sergey.kopienko@intel.com>
@@ -131,7 +131,7 @@
#define _PSTL_MSVC_LESS_THAN_CPP20_COMPLEX_CONSTEXPR_BROKEN (_MSC_VER && __cplusplus < 202002L && _MSVC_LANG < 202002L)

// According to https://gcc.gnu.org/develop.html#timeline use last known _GLIBCXX_ to check the version of libstdc++ : 20240426
#define _PSTL_TEST_COMPLEX_OP_BROKEN_GLIBCXX (__GLIBCXX__ > 0 && __GLIBCXX__ <= 20210601)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This invalid definition were introduced in the PR #1587 in the commit e527281

Copy link
Contributor

@danhoeflinger danhoeflinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM , sorry for missing this in review.

@SergeyKopienko
Copy link
Contributor Author

LGTM , sorry for missing this in review.

NP, it's my mistake in any case.

@SergeyKopienko SergeyKopienko changed the title Fix std::complex broken tests - fix merge error Fix std::complex broken test macro definition May 17, 2024
@SergeyKopienko SergeyKopienko merged commit c108bd2 into main May 17, 2024
20 checks passed
@SergeyKopienko SergeyKopienko deleted the dev/skopienko/fix_broken_tests_of_std_complex branch May 17, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants