I installed gcc/g++ following this tutorial a while ago (version 6.2). Now that I updated to Sierra, it's not compiling anymore.
When checking the version, it respond properly:
g++ --version g++ (GCC) 6.2.0 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
But when I try to compile a code that has no compilation error (tried to use online compilers like cpp.sh and it compiled successfully) it outputs this weird message (as an image, for readability):