[lldb-dev] [Bug 48869] gcc 5.3: fails with error: implicit instantiation of undefined template 'std::hash<lldb_private::ScratchTypeSystemClang::IsolatedASTKind>'

via lldb-dev lldb-dev at lists.llvm.org
Tue Jan 26 01:25:02 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=48869

Sylvestre Ledru <sylvestre at debian.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #2 from Sylvestre Ledru <sylvestre at debian.org> ---
I don't think it is fixed.
The build of 46b1645e6c4f produces the same issue:

cd
"/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/build-llvm/tools/clang/stage2-bins/tools/lldb/source/Plugins/TypeSystem/Clang"
&&
"/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/build-llvm/./bin/clang++"
-DHAVE_ROUND -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS
-I"/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/build-llvm/tools/clang/stage2-bins/tools/lldb/source/Plugins/TypeSystem/Clang"
-I"/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/lldb/source/Plugins/TypeSystem/Clang"
-I"/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/build-llvm/tools/clang/stage2-bins/tools/lldb/source"
-I"/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/lldb/include"
-I"/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/build-llvm/tools/clang/stage2-bins/tools/lldb/include"
-I"/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/build-llvm/tools/clang/stage2-bins/include"
-I"/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/llvm/include"
-I/usr/include/python3.5m
-I"/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/clang/include"
-I"/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/build-llvm/tools/clang/stage2-bins/tools/lldb/../clang/include"
-I"/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/lldb/source/."
-fuse-ld=gold -fPIC -Wno-unused-command-line-argument
-Wno-unknown-warning-option -fPIC -fvisibility-inlines-hidden -Werror=date-time
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default
-Wno-class-memaccess -Wno-noexcept-type -Wnon-virtual-dtor
-Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion
-ffunction-sections -fdata-sections -Wno-deprecated-declarations
-Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register
-Wno-vla-extension -O2 -DNDEBUG -g1  -fno-exceptions -std=c++14 -o
CMakeFiles/lldbPluginTypeSystemClang.dir/TypeSystemClang.cpp.o -c
"/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp"
In file included from
/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:9:
In file included from
/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h:30:
In file included from
/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/lldb/source/./Plugins/ExpressionParser/Clang/ClangPersistentVariables.h:14:
In file included from
/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/lldb/source/./Plugins/ExpressionParser/Clang/ClangExpressionVariable.h:23:
In file included from
/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/lldb/include/lldb/Expression/ExpressionVariable.h:17:
In file included from
/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/lldb/include/lldb/Core/ValueObject.h:16:
In file included from
/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/lldb/include/lldb/Target/Process.h:21:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/unordered_set:47:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/bits/hashtable.h:35:
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/bits/hashtable_policy.h:85:11:
error: implicit instantiation of undefined template
'std::hash<lldb_private::ScratchTypeSystemClang::IsolatedASTKind>'
        noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
                 ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/type_traits:138:14:
note: in instantiation of template class
'std::__detail::__is_noexcept_hash<lldb_private::ScratchTypeSystemClang::IsolatedASTKind,
std::hash<lldb_private::ScratchTypeSystemClang::IsolatedASTKind>>' requested
here
    : public conditional<_B1::value, _B2, _B1>::type
             ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/type_traits:148:39:
note: in instantiation of template class
'std::__and_<std::__is_fast_hash<std::hash<lldb_private::ScratchTypeSystemClang::IsolatedASTKind>>,
std::__detail::__is_noexcept_hash<lldb_private::ScratchTypeSystemClang::IsolatedASTKind,
std::hash<lldb_private::ScratchTypeSystemClang::IsolatedASTKind>>>' requested
here
    : public integral_constant<bool, !_Pp::value>
                                      ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/bits/unordered_map.h:46:34:
note: in instantiation of template class
'std::__not_<std::__and_<std::__is_fast_hash<std::hash<lldb_private::ScratchTypeSystemClang::IsolatedASTKind>>,
std::__detail::__is_noexcept_hash<lldb_private::ScratchTypeSystemClang::IsolatedASTKind,
std::hash<lldb_private::ScratchTypeSystemClang::IsolatedASTKind>>>>' requested
here
           typename _Tr = __umap_traits<__cache_default<_Key, _Hash>::value>>
                                        ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/bits/unordered_map.h:100:15:
note: in instantiation of default argument for
'__umap_hashtable<lldb_private::ScratchTypeSystemClang::IsolatedASTKind,
std::unique_ptr<lldb_private::TypeSystemClang>,
std::hash<lldb_private::ScratchTypeSystemClang::IsolatedASTKind>,
std::equal_to<lldb_private::ScratchTypeSystemClang::IsolatedASTKind>,
std::allocator<std::pair<const
lldb_private::ScratchTypeSystemClang::IsolatedASTKind,
std::unique_ptr<lldb_private::TypeSystemClang>>>>' required here
      typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc>  _Hashtable;
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/llvm-toolchain-snapshot-12~++20210126020814+46b1645e6c4f/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h:1227:7:
note: in instantiation of template class
'std::unordered_map<lldb_private::ScratchTypeSystemClang::IsolatedASTKind,
std::unique_ptr<lldb_private::TypeSystemClang>>' requested here
      m_isolated_asts;
      ^
/usr/lib/gcc/x86_64-linux-gnu/5.3.1/../../../../include/c++/5.3.1/system_error:134:12:
note: template is declared here
    struct hash;
           ^

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20210126/122c9e6a/attachment.html>


More information about the lldb-dev mailing list