Page 1 of 1

Linux : Unable to build GCC 5.3.1

Posted: Sat Jun 04, 2016 12:20
by toxicshadow
Build fails with the following error:

Code: Select all

/mnt/games/native_games/games_source/gzdoom/src/p_things.cpp: In function ‘bool P_Thing_CheckProximity(AActor*, PClass*, double, int, int, int)’:
/mnt/games/native_games/games_source/gzdoom/src/p_things.cpp:676:10: error: converting to ‘bool’ from ‘std::nullptr_t’ requires direct-initialization [-fpermissive]
   return nullptr;

Re: Linux : Unable to build GCC 5.3.1

Posted: Sat Jun 04, 2016 14:27
by _mental_
To be able to compile you can change line 676 of p_things.cpp to

Code: Select all

return false;
Looks like a compiler bug. As far as I know C++ standard allows conversion from nullptr_t to bool. MSVC and Clang compile this code without even a warning.

Re: Linux : Unable to build GCC 5.3.1

Posted: Sat Jun 04, 2016 19:53
by Graf Zahl
fixed