Temporary header file '/tmp/pFtBB2Aor4/dump1.h' with the following content will be compiled to create GCC translation unit dump: // add defines #define __STDC_VERSION__ 201710L #define _GXX_NULLPTR_T #define CLUTTER_ENABLE_COMPOSITOR_API 1 #define _REGEX_NELTS(n) #define _Atomic #define PACKED #define getaddrinfo_a(a,b,c,d) // add includes #include "/usr/include/stdlib.h" #include "/usr/include/claw/algorithm.hpp" #include "/usr/include/claw/assert.hpp" #include "/usr/include/claw/automaton.hpp" #include "/usr/include/claw/avl.hpp" #include "/usr/include/claw/avl_base.hpp" #include "/usr/include/claw/basic_singleton.hpp" #include "/usr/include/claw/binary_node.hpp" #include "/usr/include/claw/bit_istream.hpp" #include "/usr/include/claw/bit_ostream.hpp" #include "/usr/include/claw/box_2d.hpp" #include "/usr/include/claw/buffered_istream.hpp" #include "/usr/include/claw/buffered_ostream.hpp" #include "/usr/include/claw/claw.hpp" #include "/usr/include/claw/claw_gettext.hpp" #include "/usr/include/claw/coordinate_2d.hpp" #include "/usr/include/claw/exception.hpp" #include "/usr/include/claw/factory.hpp" #include "/usr/include/claw/functional.hpp" #include "/usr/include/claw/game_ai.hpp" #include "/usr/include/claw/glob.hpp" #include "/usr/include/claw/graph.hpp" #include "/usr/include/claw/graph_algorithm.hpp" #include "/usr/include/claw/it_index.hpp" #include "/usr/include/claw/iterator.hpp" #include "/usr/include/claw/kmp.hpp" #include "/usr/include/claw/line_2d.hpp" #include "/usr/include/claw/lzw_decoder.hpp" #include "/usr/include/claw/lzw_encoder.hpp" #include "/usr/include/claw/math.hpp" #include "/usr/include/claw/max_vector.hpp" #include "/usr/include/claw/meta/conditional.hpp" #include "/usr/include/claw/meta/is_base_of.hpp" #include "/usr/include/claw/meta/no_type.hpp" #include "/usr/include/claw/meta/same_type.hpp" #include "/usr/include/claw/meta/type_list.hpp" #include "/usr/include/claw/meta.hpp" #include "/usr/include/claw/multi_type_map.hpp" #include "/usr/include/claw/multi_type_map_visitor.hpp" #include "/usr/include/claw/non_copyable.hpp" #include "/usr/include/claw/ordered_set.hpp" #include "/usr/include/claw/real_number.hpp" #include "/usr/include/claw/rectangle.hpp" #include "/usr/include/claw/rle_decoder.hpp" #include "/usr/include/claw/rle_encoder.hpp" #include "/usr/include/claw/smart_ptr.hpp" #include "/usr/include/claw/string_algorithm.hpp" #include "/usr/include/claw/system_info.hpp" #include "/usr/include/claw/system_info_unix.hpp" #include "/usr/include/claw/system_info_win32.hpp" #include "/usr/include/claw/tree.hpp" #include "/usr/include/claw/trie.hpp" #include "/usr/include/claw/types.hpp" #include "/usr/include/claw/vector_2d.hpp" #include "/usr/include/claw/version.hpp" // add namespaces namespace claw{typedef int tmp_add_type_1;} claw::tmp_add_type_1 tmp_add_func_1(){return 0;}; namespace claw{namespace ai{typedef int tmp_add_type_2;}} claw::ai::tmp_add_type_2 tmp_add_func_2(){return 0;}; namespace claw{namespace ai{namespace game{typedef int tmp_add_type_3;}}} claw::ai::game::tmp_add_type_3 tmp_add_func_3(){return 0;}; namespace claw{namespace graphic{typedef int tmp_add_type_4;}} claw::graphic::tmp_add_type_4 tmp_add_func_4(){return 0;}; namespace claw{namespace math{typedef int tmp_add_type_5;}} claw::math::tmp_add_type_5 tmp_add_func_5(){return 0;}; namespace claw{namespace memory{typedef int tmp_add_type_6;}} claw::memory::tmp_add_type_6 tmp_add_func_6(){return 0;}; namespace claw{namespace meta{typedef int tmp_add_type_7;}} claw::meta::tmp_add_type_7 tmp_add_func_7(){return 0;}; namespace claw{namespace net{typedef int tmp_add_type_8;}} claw::net::tmp_add_type_8 tmp_add_func_8(){return 0;}; namespace claw{namespace pattern{typedef int tmp_add_type_9;}} claw::pattern::tmp_add_type_9 tmp_add_func_9(){return 0;}; namespace claw{namespace text{typedef int tmp_add_type_10;}} claw::text::tmp_add_type_10 tmp_add_func_10(){return 0;}; namespace claw{namespace tween{typedef int tmp_add_type_11;}} claw::tween::tmp_add_type_11 tmp_add_func_11(){return 0;}; // add classes _G_fpos64_t* tmp_add_class_0; _G_fpos_t* tmp_add_class_1; _IO_cookie_io_functions_t* tmp_add_class_2; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/pFtBB2Aor4/dump1.h" In file included from /tmp/pFtBB2Aor4/dump1.h:13: /usr/include/claw/algorithm.hpp:46:8: error: ‘size_t’ in namespace ‘std’ does not name a type 46 | std::size_t replace | ^~~~~~ In file included from /usr/include/claw/algorithm.hpp:53: /usr/include/claw/impl/algorithm.tpp:113:6: error: ‘size_t’ in namespace ‘std’ does not name a type 113 | std::size_t claw::replace | ^~~~~~ In file included from /usr/include/claw/string_algorithm.hpp:96, from /tmp/pFtBB2Aor4/dump1.h:58: /usr/include/claw/impl/string_algorithm.tpp: In function ‘std::size_t claw::text::replace(StringType&, const StringType&, const StringType&)’: /usr/include/claw/impl/string_algorithm.tpp:170:11: error: ‘replace’ is not a member of ‘claw’ 170 | claw::replace | ^~~~~~~ /usr/include/claw/impl/string_algorithm.tpp:170:11: note: suggested alternatives: In file included from /usr/include/c++/12/algorithm:73, from /usr/include/claw/impl/automaton.tpp:30, from /usr/include/claw/automaton.hpp:143, from /tmp/pFtBB2Aor4/dump1.h:15: /usr/include/c++/12/pstl/glue_algorithm_defs.h:174:1: note: ‘std::replace’ 174 | replace(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, | ^~~~~~~ /usr/include/claw/impl/string_algorithm.tpp:166:13: note: ‘claw::text::replace’ 166 | std::size_t claw::text::replace | ^~~~ In file included from /tmp/pFtBB2Aor4/dump1.h:60: /usr/include/claw/system_info_unix.hpp: At global scope: /usr/include/claw/system_info_unix.hpp:44:9: error: redefinition of ‘class claw::system_info’ 44 | class system_info | ^~~~~~~~~~~ In file included from /usr/include/claw/system_info.hpp:36, from /tmp/pFtBB2Aor4/dump1.h:59: /usr/include/claw/system_info_unix.hpp:44:9: note: previous definition of ‘class claw::system_info’ 44 | class system_info | ^~~~~~~~~~~ In file included from /tmp/pFtBB2Aor4/dump1.h:61: /usr/include/claw/system_info_win32.hpp:44:9: error: redefinition of ‘class claw::system_info’ 44 | class system_info | ^~~~~~~~~~~ /usr/include/claw/system_info_unix.hpp:44:9: note: previous definition of ‘class claw::system_info’ 44 | class system_info | ^~~~~~~~~~~