Json.h error: ‘class std::__debug::set<label>’ has no member named ‘emplace’

Can’t compile current git version for two days.
It says:

g++ -DLOCALIZE -Wall -Wextra -g -D_GLIBCXX_DEBUG  --std=c++11 -MMD -I/usr/include/ncursesw -c src/savegame_json.cpp -o obj/savegame_json.o
In file included from src/pldata.h:4:0,
                 from src/creature.h:5,
                 from src/character.h:4,
                 from src/player.h:4,
                 from src/savegame_json.cpp:1:
src/json.h: In instantiation of ‘bool JsonIn::read(T&) [with T = std::__debug::set<std::basic_string<char> >; typename std::enable_if<std::is_same<typename T::key_type, typename T::value_type>::value>::type* <anonymous> = 0u]’:
src/json.h:594:32:   required from ‘bool JsonObject::read(const string&, T&) [with T = std::__debug::set<std::basic_string<char> >; std::string = std::basic_string<char>]’
src/savegame_json.cpp:1090:37:   required from here
src/json.h:268:25: error: ‘class std::__debug::set<std::basic_string<char> >’ has no member named ‘emplace’
src/json.h: In instantiation of ‘bool JsonIn::read(T&) [with T = std::__debug::set<label>; typename std::enable_if<std::is_same<typename T::key_type, typename T::value_type>::value>::type* <anonymous> = 0u]’:
src/json.h:594:32:   required from ‘bool JsonObject::read(const string&, T&) [with T = std::__debug::set<label>; std::string = std::basic_string<char>]’
src/savegame_json.cpp:1351:31:   required from here
src/json.h:268:25: error: ‘class std::__debug::set<label>’ has no member named ‘emplace’
Makefile:430: recipe for target 'obj/savegame_json.o' failed
make: *** [obj/savegame_json.o] Error 1

Yep, that’s a known issue and a 0.C blocker.

There’s a fix in a PR ready. You could also fix it by getting a version of GCC >= 4.8.