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 gcc weird behaviour around template deduction (#8533) #8576

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

carlopi
Copy link
Contributor

@carlopi carlopi commented Aug 15, 2023

Follow up of #8533, fixing a template deduction problem in older gcc compilers.

This should fix failures in nightly jobs Linux 32 bit, gcc 4.8 and Python Address Sanitizer. Tested in my fork at https://github.com/carlopi/duckdb/actions/runs/5864648533.

@carlopi carlopi requested a review from Tishj August 15, 2023 12:58
Copy link
Contributor

@Tishj Tishj left a comment

Choose a reason for hiding this comment

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

Thanks, that looks like it should do the trick
emplace will forward the arguments to the pair constructor, the problem before was that it couldn't infer that BoundParameterData could be constructed from Value.

Or maybe the fact that that constructor is explicit might be the problem, either way, this looks good 👍

@carlopi
Copy link
Contributor Author

carlopi commented Aug 15, 2023

Failure is unrelated, this is good to go.

@hannes hannes merged commit ca1301a into duckdb:master Aug 16, 2023
51 checks passed
@hannes
Copy link
Member

hannes commented Aug 16, 2023

Thanks

@carlopi carlopi deleted the fix_gcc branch August 21, 2023 10:59
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.

None yet

3 participants