The code below takes forever (well, a long time) to compile in g ++ 6.1.0 compared to g ++ 4.8.3. Is this a compiler error? Or something stupid in the code? (Stupider than using fixed and showpoint where there are no floating point values ...).
g ++ 4.8:
$ time ~ / dev / compilers / linux-x86_64-2.10.1 / gnu4.8.3 / bin / g ++ -D_REENTRANT -fPIC -Wall -Wextra -Wno-unused-parameter -Werror -Wno-unused-local-typedefs -m64 - Woverloaded-virtual -Wno-revrecated -fvisibility-inlines-hidden -fvisibility = hidden -std = C ++ 11 -c ostreamtest.cpp
real 0m0.451s
g ++ 6.1:
$ time ~ / dev / compilers / linux-x86_64-2.10.1 / gnu6.1.0 / bin / g ++ -D_REENTRANT -fPIC -Wall -Wextra -Wno-unused-parameter -Werror -Wno-unused-local-typedefs -m64 - Woverloaded-virtual -Wno-revrecated -fvisibility-inlines-hidden -fvisibility = hidden -std = C ++ 11 -c ostreamtest.cpp
real 15m36.033s
ostreamtest.cpp:
#include <iostream>
c ++ g ++
Chris morley
source share