Open susilehtola opened 2 years ago
I have run into the same problem. I'm not entirely sure what the problem is and what it is related to, but I assumed it was an issue with newer versions of the compiler and tried 'CXXFLAGS=-std=c++14'
which solved the problem for me.
Right. The problem is that configure
does not set the C++ standard...
Migrating to CMake would probably make a lot of things easier..
The tensor_name_less::operator()
should be const
(in interface/term.h
and interface/term.cxx
). Comparison operators should be constant, and I think they are being enforced in this compiler. Will submit a pull request to fix this.
Switching to CMake when the problem requires a 1-line fix for each compiler type (and almost all of them use GCC-compatible -std=
anyways) is killing a mosquito with nuclear weapons.
I will write the trivial fix in configure
. CMake is going to create an endless nightmare of maintenance.
Switching to CMake when the problem requires a 1-line fix for each compiler type (and almost all of them use GCC-compatible
-std=
anyways) is killing a mosquito with nuclear weapons.
But hey, at least the bug is dead! [Also, Finland used to host world championships of mosquito swatting.]
@susilehtola Was wondering if the pull request mentioned here fixed the issue for c++11?
@raghavendrak I tried, but the PR doesn't give a clean patch
@susilehtola sorry there was an issue in my fork. Have fixed the same. Can you try it now?
@susilehtola sorry there was an issue in my fork. Have fixed the same. Can you try it now?
fix confirmed
Trying to compile the current
master
branch with gcc 11.2.1 in Fedora 35 leads to