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

GCC 13.1 Fix, main branch (2024.11.08.) #882

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

krasznaa
Copy link
Member

@krasznaa krasznaa commented Nov 8, 2024

This is to try to address the compiler crash that we've seen with @nribaric earlier this week, and which @flg saw this morning himself.

GCC 13.1 crashes while compiling traccc's host CKF code when detray::navigator<...>::state::m_candidates is initialized explicitly with curly braces. 😕

I'm worried about this update though. 🤔 By removing the curly braces, do I eliminate some explicit initialization to the elements of the array? std::array has no constructor. So this change should not change anything... right? The code is initializing the array elements to something somewhere else, right? (If the logic requires some initialization that is. If not, then fine.)

That version of GCC crashes in traccc's host CKF code when
m_candidates is initialized explicitly with curly braces. :-/
@krasznaa krasznaa added the bug Something isn't working label Nov 8, 2024
Copy link

sonarcloud bot commented Nov 8, 2024

Copy link
Contributor

@niermann999 niermann999 left a comment

Choose a reason for hiding this comment

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

Yes, this should be handled securely by navigation.clear() in the init method

@krasznaa krasznaa merged commit 028de5d into acts-project:main Nov 8, 2024
19 checks passed
@krasznaa krasznaa deleted the GCC13.1Fix-main-20241108 branch November 8, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants