Skip to content

Fix to broken build in clang #6173

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

daavid00
Copy link
Member

This is the error (macOS, clang):

/Users/dmar/Github/opm/opm-simulators/opm/simulators/wells/ParallelWellInfo.cpp:642:13: error: call to member function 'broadcast' is ambiguous
  642 |         ser.broadcast(rankWithFirstPerf_, res);
/Users/dmar/Github/opm/opm-simulators/opm/simulators/utils/MPISerializer.hpp:46:10: note: candidate function [with T = const int]
   46 |     void broadcast(T& data, int root = 0)
      |          ^
/Users/dmar/Github/opm/opm-simulators/opm/simulators/utils/MPISerializer.hpp:73:10: note: candidate function [with Args = <int &>]
   73 |     void broadcast(int root, Args&&... args)

This 'hack 'fixes the building (for sure there is a more elegant (proper) fix, if someone has one, please do a PR and I will close this one.

@daavid00
Copy link
Member Author

jenkins build this please

@atgeirr
Copy link
Member

atgeirr commented Apr 14, 2025

I see this error as well. I will try to make a more fundamental fix, but if I fail I will merge this workaround.

@atgeirr
Copy link
Member

atgeirr commented Apr 14, 2025

Made a different fix in #6180.

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.

2 participants