https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86739
Bug ID: 86739 Summary: [9 Regression] Bootstrap broken with host GCC 4.1.2 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- Seen on x86_64-linux and ia64-linux. g++ -std=gnu++98 -c -g -DIN_GCC -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I/gcc/spec/sb-vangelis-head-64/gcc/gcc -I/gcc/spec/sb-vangelis-head-64/gcc/gcc/build -I/gcc/spec/sb-vangelis-head-64/gcc/gcc/../include -I/gcc/spec/sb-vangelis-head-64/gcc/gcc/../libcpp/include \ -o build/vec.o /gcc/spec/sb-vangelis-head-64/gcc/gcc/vec.c /usr/include/c++/4.1.2/bits/stl_pair.h: In instantiation of 'std::pair<mem_location* const&, vec_usage*&>': /gcc/spec/sb-vangelis-head-64/gcc/gcc/mem-stats.h:597: instantiated from 'typename mem_alloc_description<T>::mem_list_t* mem_alloc_description<T>::get_list(mem_alloc_origin, unsigned int*, int (*)(const void*, const void*)) [with T = vec_usage]' /gcc/spec/sb-vangelis-head-64/gcc/gcc/mem-stats.h:637: instantiated from 'void mem_alloc_description<T>::dump(mem_alloc_origin, int (*)(const void*, const void*)) [with T = vec_usage]' /gcc/spec/sb-vangelis-head-64/gcc/gcc/vec.c:175: instantiated from here /usr/include/c++/4.1.2/bits/stl_pair.h:84: error: forming reference to reference type 'vec_usage*&' /gcc/spec/sb-vangelis-head-64/gcc/gcc/hash-map.h: In member function 'std::pair<const typename Traits::key_type&, Value&> hash_map< <template-parameter-1-1>, <template-parameter-1-2>, <template-parameter-1-3> >::iterator::operator*() [with KeyId = mem_alloc_description<vec_usage>::mem_location_hash, Value = vec_usage*, Traits = simple_hashmap_traits<default_hash_traits<mem_alloc_description<vec_usage>::mem_location_hash>, vec_usage*>]': /gcc/spec/sb-vangelis-head-64/gcc/gcc/mem-stats.h:597: instantiated from 'typename mem_alloc_description<T>::mem_list_t* mem_alloc_description<T>::get_list(mem_alloc_origin, unsigned int*, int (*)(const void*, const void*)) [with T = vec_usage]' /gcc/spec/sb-vangelis-head-64/gcc/gcc/mem-stats.h:637: instantiated from 'void mem_alloc_description<T>::dump(mem_alloc_origin, int (*)(const void*, const void*)) [with T = vec_usage]' /gcc/spec/sb-vangelis-head-64/gcc/gcc/vec.c:175: instantiated from here /gcc/spec/sb-vangelis-head-64/gcc/gcc/hash-map.h:229: error: no matching function for call to 'std::pair<mem_location* const&, vec_usage*&>::pair(mem_location*&, vec_usage*&)' /usr/include/c++/4.1.2/bits/stl_pair.h:80: note: candidates are: std::pair<_T1, _T2>::pair() [with _T1 = mem_location* const&, _T2 = vec_usage*&] /usr/include/c++/4.1.2/bits/stl_pair.h:69: note: std::pair<mem_location* const&, vec_usage*&>::pair(const std::pair<mem_location* const&, vec_usage*&>&) make[3]: *** [build/vec.o] Error 1