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

Compilation error #571

Open
optstat opened this issue Jan 2, 2025 · 0 comments
Open

Compilation error #571

optstat opened this issue Jan 2, 2025 · 0 comments

Comments

@optstat
Copy link

optstat commented Jan 2, 2025

After compiling the latest as well as previous versions of TACO I get the following compilation error
taco-src/src/lower/lowerer_impl.cpp:1677:21: error: reference to ‘conjunction’ is ambiguous
1677 | nonZeroCase = conjunction({coordComparisons[i], valueComparisons[i]});
| ^~~~~~~~~~~
I am using gcc (Ubuntu 12.3.0-17ubuntu1) 12.3.0

Here is the reason:
The error regarding conjunction being ambiguous usually occurs because the term conjunction is defined in multiple namespaces, causing a conflict. In modern C++ (C++17 and later), std::conjunction is part of the <type_traits> library, and this might conflict with a user-defined conjunction in the TACO source code.
and the fix is to remove the namespace ambiguity

nonZeroCase = taco::conjunction({coordComparisons[i], valueComparisons[i]});

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

No branches or pull requests

1 participant