Closed henryiii closed 5 years ago
It works just fine in GCC 8, by the way. To reproduce, from a current checkout, run:
docker run --rm -v $PWD:/histogram -it gcc:9
wget -qO- "https://cmake.org/files/v3.15/cmake-3.15.4-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local
cmake -S histogram -B build
cmake --build build
cmake --build build -t test
(Changing 9 to 8 fixes the problem)
Thank you for reporting, will fix. Not sure whether it is a bug in my code or the compiler, but usually newer versions are more standard compliant than older versions, so maybe a subtle bug in the code. These things happen.
It looks like a bug in gcc-9. I implemented a workaround.
I thought it looked like a compiler bug. Have you reported it to gcc our verified it already is known?
No, I am too lazy to prepare a minimal example.
On my mac (and on a linux machine in docker
gcc:9
), GCC 9 fails to compile after the recent updates:The compile output is too long for github in all it's templated glory, so trimmed version below:
Full version: log.txt