Linux : Unable to build GCC 5.3.1

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
toxicshadow

Linux : Unable to build GCC 5.3.1

Post 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;
_mental_
Developer
Developer
Posts: 259
Joined: Sun Aug 07, 2011 13:36

Re: Linux : Unable to build GCC 5.3.1

Post 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.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Linux : Unable to build GCC 5.3.1

Post by Graf Zahl »

fixed
Locked

Return to “Closed Bugs”