[llvm-bugs] [Bug 48469] New: Compiler crash with boost::mp_for_each

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 10 02:28:36 PST 2020


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

            Bug ID: 48469
           Summary: Compiler crash with boost::mp_for_each
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: christian.kandeler at qt.io
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

Created attachment 24261
  --> https://bugs.llvm.org/attachment.cgi?id=24261&action=edit
Source code

Trying to compile the attached source file (with -std=c++20) crashes the
compiler:

PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang-11 -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names
-main-file-name main.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie
-mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -fno-split-dwarf-inlining
-debugger-tuning=gdb -resource-dir /usr/lib/clang/11.0.0 -internal-isystem
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0
-internal-isystem
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/x86_64-pc-linux-gnu
-internal-isystem
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/lib/clang/11.0.0/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -std=c++20 -fdeprecated-macro
-fdebug-compilation-dir /sda/home/christian/dev/QTCREATORBUG-25049
-ferror-limit 19 -stack-protector 2 -fgnuc-version=4.2.1 -fcxx-exceptions
-fexceptions -fcolor-diagnostics -faddrsig -o /tmp/main-d3a1d4.o -x c++
/sda/home/christian/dev/QTCREATORBUG-25049/main.cpp 
1.      /sda/home/christian/dev/QTCREATORBUG-25049/main.cpp:24:6: current
parser token ')'
2.      /sda/home/christian/dev/QTCREATORBUG-25049/main.cpp:19:1: parsing
function body 'main'
3.      /sda/home/christian/dev/QTCREATORBUG-25049/main.cpp:19:1: in compound
statement ('{}')
4.      /sda/home/christian/dev/QTCREATORBUG-25049/main.cpp:9:16: instantiating
function definition '(anonymous
namespace)::tuple_type_iterator<std::tuple<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char>>, double, int>, (lambda at
/sda/home/christian/dev/QTCREATORBUG-25049/main.cpp:22:32)>'
5.      /usr/include/boost/mp11/algorithm.hpp:1022:51: instantiating function
definition
'boost::mp11::mp_for_each<boost::mp11::mp_list<std::integral_constant<unsigned
long, 0>, std::integral_constant<unsigned long, 1>,
std::integral_constant<unsigned long, 2>>, (lambda at
/sda/home/christian/dev/QTCREATORBUG-25049/main.cpp:12:57)>'
6.      /usr/include/boost/mp11/algorithm.hpp:988:54: instantiating function
definition
'boost::mp11::detail::mp_for_each_impl<std::integral_constant<unsigned long,
0>, std::integral_constant<unsigned long, 1>, std::integral_constant<unsigned
long, 2>, (lambda at
/sda/home/christian/dev/QTCREATORBUG-25049/main.cpp:12:57)>'
7.      /sda/home/christian/dev/QTCREATORBUG-25049/main.cpp:12:57:
instantiating function definition '(anonymous
namespace)::tuple_type_iterator((lambda at
/sda/home/christian/dev/QTCREATORBUG-25049/main.cpp:22:32) &&)::(anonymous
class)::operator()<std::integral_constant<unsigned long, 0>>'
8.      /sda/home/christian/dev/QTCREATORBUG-25049/main.cpp:22:32:
instantiating class definition ''
  #0 0x00007f65adf6b14b llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/bin/../lib/libLLVM-11.so+0xa7614b)
  #1 0x00007f65adf68e74 llvm::sys::RunSignalHandlers()
(/usr/bin/../lib/libLLVM-11.so+0xa73e74)
  #2 0x00007f65adf68fc9 (/usr/bin/../lib/libLLVM-11.so+0xa73fc9)
  #3 0x00007f65ad18c6a0 __restore_rt (/usr/bin/../lib/libc.so.6+0x3d6a0)
  #4 0x00007f65b46fb59b
clang::Sema::SubstFunctionDeclType(clang::TypeSourceInfo*,
clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation,
clang::DeclarationName, clang::CXXRecordDecl*, clang::Qualifiers)
(/usr/bin/../lib/libclang-cpp.so.11+0x17a859b)
  #5 0x00007f65b4712d7b
clang::TemplateDeclInstantiator::SubstFunctionType(clang::FunctionDecl*,
llvm::SmallVectorImpl<clang::ParmVarDecl*>&)
(/usr/bin/../lib/libclang-cpp.so.11+0x17bfd7b)
  #6 0x00007f65b472a972
clang::TemplateDeclInstantiator::VisitCXXMethodDecl(clang::CXXMethodDecl*,
clang::TemplateParameterList*,
llvm::Optional<clang::ASTTemplateArgumentListInfo const*>,
clang::TemplateDeclInstantiator::RewriteKind)
(/usr/bin/../lib/libclang-cpp.so.11+0x17d7972)
  #7 0x00007f65b46f381e clang::Sema::InstantiateClass(clang::SourceLocation,
clang::CXXRecordDecl*, clang::CXXRecordDecl*,
clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x17a081e)
  #8 0x00007f65b472a521
clang::TemplateDeclInstantiator::VisitCXXRecordDecl(clang::CXXRecordDecl*)
(/usr/bin/../lib/libclang-cpp.so.11+0x17d7521)
  #9 0x00007f65b4730ef6 (/usr/bin/../lib/libclang-cpp.so.11+0x17ddef6)
 #10 0x00007f65b3f67cb2
clang::Sema::runWithSufficientStackSpace(clang::SourceLocation,
llvm::function_ref<void ()>) (/usr/bin/../lib/libclang-cpp.so.11+0x1014cb2)
 #11 0x00007f65b4712903 clang::Sema::SubstDecl(clang::Decl*,
clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&)
(/usr/bin/../lib/libclang-cpp.so.11+0x17bf903)
 #12 0x00007f65b471f2d6
clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*,
clang::MultiLevelTemplateArgumentList const&, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x17cc2d6)
 #13 0x00007f65b46fe3e5 (/usr/bin/../lib/libclang-cpp.so.11+0x17ab3e5)
 #14 0x00007f65b46e2d6f (/usr/bin/../lib/libclang-cpp.so.11+0x178fd6f)
 #15 0x00007f65b47080a1 (/usr/bin/../lib/libclang-cpp.so.11+0x17b50a1)
 #16 0x00007f65b47097e8 (/usr/bin/../lib/libclang-cpp.so.11+0x17b67e8)
 #17 0x00007f65b470da7c clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&)
(/usr/bin/../lib/libclang-cpp.so.11+0x17baa7c)
 #18 0x00007f65b47298bc
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x17d68bc)
 #19 0x00007f65b3f67cb2
clang::Sema::runWithSufficientStackSpace(clang::SourceLocation,
llvm::function_ref<void ()>) (/usr/bin/../lib/libclang-cpp.so.11+0x1014cb2)
 #20 0x00007f65b467f093 clang::Sema::DeduceReturnType(clang::FunctionDecl*,
clang::SourceLocation, bool) (/usr/bin/../lib/libclang-cpp.so.11+0x172c093)
 #21 0x00007f65b4295d28 clang::Sema::DiagnoseUseOfDecl(clang::NamedDecl*,
llvm::ArrayRef<clang::SourceLocation>, clang::ObjCInterfaceDecl const*, bool,
bool, clang::ObjCInterfaceDecl*) (/usr/bin/../lib/libclang-cpp.so.11+0x1342d28)
 #22 0x00007f65b453885d (/usr/bin/../lib/libclang-cpp.so.11+0x15e585d)
 #23 0x00007f65b457c658
clang::Sema::BuildCallToObjectOfClassType(clang::Scope*, clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation) (/usr/bin/../lib/libclang-cpp.so.11+0x1629658)
 #24 0x00007f65b42e10de clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation, clang::Expr*)
(/usr/bin/../lib/libclang-cpp.so.11+0x138e0de)
 #25 0x00007f65b46e2e3c (/usr/bin/../lib/libclang-cpp.so.11+0x178fe3c)
 #26 0x00007f65b4704d64 (/usr/bin/../lib/libclang-cpp.so.11+0x17b1d64)
 #27 0x00007f65b46deb9d (/usr/bin/../lib/libclang-cpp.so.11+0x178bb9d)
 #28 0x00007f65b46e4e05 (/usr/bin/../lib/libclang-cpp.so.11+0x1791e05)
 #29 0x00007f65b46dd1aa (/usr/bin/../lib/libclang-cpp.so.11+0x178a1aa)
 #30 0x00007f65b46dd877 (/usr/bin/../lib/libclang-cpp.so.11+0x178a877)
 #31 0x00007f65b46dd090 (/usr/bin/../lib/libclang-cpp.so.11+0x178a090)
 #32 0x00007f65b46fd440 (/usr/bin/../lib/libclang-cpp.so.11+0x17aa440)
 #33 0x00007f65b4704d64 (/usr/bin/../lib/libclang-cpp.so.11+0x17b1d64)
 #34 0x00007f65b46deb9d (/usr/bin/../lib/libclang-cpp.so.11+0x178bb9d)
 #35 0x00007f65b46de267 (/usr/bin/../lib/libclang-cpp.so.11+0x178b267)
 #36 0x00007f65b47097e8 (/usr/bin/../lib/libclang-cpp.so.11+0x17b67e8)
 #37 0x00007f65b470da7c clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&)
(/usr/bin/../lib/libclang-cpp.so.11+0x17baa7c)
 #38 0x00007f65b47298bc
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x17d68bc)
 #39 0x00007f65b3f67cb2
clang::Sema::runWithSufficientStackSpace(clang::SourceLocation,
llvm::function_ref<void ()>) (/usr/bin/../lib/libclang-cpp.so.11+0x1014cb2)
 #40 0x00007f65b42a02c5
clang::Sema::MarkFunctionReferenced(clang::SourceLocation,
clang::FunctionDecl*, bool) (/usr/bin/../lib/libclang-cpp.so.11+0x134d2c5)
 #41 0x00007f65b42a0c9a clang::Sema::MarkDeclRefReferenced(clang::DeclRefExpr*,
clang::Expr const*) (/usr/bin/../lib/libclang-cpp.so.11+0x134dc9a)
 #42 0x00007f65b42a7cd5 clang::Sema::BuildDeclRefExpr(clang::ValueDecl*,
clang::QualType, clang::ExprValueKind, clang::DeclarationNameInfo const&,
clang::NestedNameSpecifierLoc, clang::NamedDecl*, clang::SourceLocation,
clang::TemplateArgumentListInfo const*)
(/usr/bin/../lib/libclang-cpp.so.11+0x1354cd5)
 #43 0x00007f65b454d5d3
clang::Sema::FixOverloadedFunctionReference(clang::Expr*,
clang::DeclAccessPair, clang::FunctionDecl*)
(/usr/bin/../lib/libclang-cpp.so.11+0x15fa5d3)
 #44 0x00007f65b4571420 (/usr/bin/../lib/libclang-cpp.so.11+0x161e420)
 #45 0x00007f65b4571e3b clang::Sema::BuildOverloadedCallExpr(clang::Scope*,
clang::Expr*, clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool,
bool) (/usr/bin/../lib/libclang-cpp.so.11+0x161ee3b)
 #46 0x00007f65b42e0134 clang::Sema::BuildCallExpr(clang::Scope*, clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation, clang::Expr*, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x138d134)
 #47 0x00007f65b42e10de clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation, clang::Expr*)
(/usr/bin/../lib/libclang-cpp.so.11+0x138e0de)
 #48 0x00007f65b46e2e3c (/usr/bin/../lib/libclang-cpp.so.11+0x178fe3c)
 #49 0x00007f65b46de267 (/usr/bin/../lib/libclang-cpp.so.11+0x178b267)
 #50 0x00007f65b47097e8 (/usr/bin/../lib/libclang-cpp.so.11+0x17b67e8)
 #51 0x00007f65b470da7c clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&)
(/usr/bin/../lib/libclang-cpp.so.11+0x17baa7c)
 #52 0x00007f65b47298bc
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x17d68bc)
 #53 0x00007f65b3f67cb2
clang::Sema::runWithSufficientStackSpace(clang::SourceLocation,
llvm::function_ref<void ()>) (/usr/bin/../lib/libclang-cpp.so.11+0x1014cb2)
 #54 0x00007f65b42a02c5
clang::Sema::MarkFunctionReferenced(clang::SourceLocation,
clang::FunctionDecl*, bool) (/usr/bin/../lib/libclang-cpp.so.11+0x134d2c5)
 #55 0x00007f65b42a0c9a clang::Sema::MarkDeclRefReferenced(clang::DeclRefExpr*,
clang::Expr const*) (/usr/bin/../lib/libclang-cpp.so.11+0x134dc9a)
 #56 0x00007f65b42a7cd5 clang::Sema::BuildDeclRefExpr(clang::ValueDecl*,
clang::QualType, clang::ExprValueKind, clang::DeclarationNameInfo const&,
clang::NestedNameSpecifierLoc, clang::NamedDecl*, clang::SourceLocation,
clang::TemplateArgumentListInfo const*)
(/usr/bin/../lib/libclang-cpp.so.11+0x1354cd5)
 #57 0x00007f65b454d5d3
clang::Sema::FixOverloadedFunctionReference(clang::Expr*,
clang::DeclAccessPair, clang::FunctionDecl*)
(/usr/bin/../lib/libclang-cpp.so.11+0x15fa5d3)
 #58 0x00007f65b4571420 (/usr/bin/../lib/libclang-cpp.so.11+0x161e420)
 #59 0x00007f65b4571e3b clang::Sema::BuildOverloadedCallExpr(clang::Scope*,
clang::Expr*, clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool,
bool) (/usr/bin/../lib/libclang-cpp.so.11+0x161ee3b)
 #60 0x00007f65b42e0134 clang::Sema::BuildCallExpr(clang::Scope*, clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation, clang::Expr*, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x138d134)
 #61 0x00007f65b42e10de clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation, clang::Expr*)
(/usr/bin/../lib/libclang-cpp.so.11+0x138e0de)
 #62 0x00007f65b46e2e3c (/usr/bin/../lib/libclang-cpp.so.11+0x178fe3c)
 #63 0x00007f65b47080a1 (/usr/bin/../lib/libclang-cpp.so.11+0x17b50a1)
 #64 0x00007f65b47097e8 (/usr/bin/../lib/libclang-cpp.so.11+0x17b67e8)
 #65 0x00007f65b470da7c clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&)
(/usr/bin/../lib/libclang-cpp.so.11+0x17baa7c)
 #66 0x00007f65b47298bc
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x17d68bc)
 #67 0x00007f65b3f67cb2
clang::Sema::runWithSufficientStackSpace(clang::SourceLocation,
llvm::function_ref<void ()>) (/usr/bin/../lib/libclang-cpp.so.11+0x1014cb2)
 #68 0x00007f65b42a02c5
clang::Sema::MarkFunctionReferenced(clang::SourceLocation,
clang::FunctionDecl*, bool) (/usr/bin/../lib/libclang-cpp.so.11+0x134d2c5)
 #69 0x00007f65b42a0c9a clang::Sema::MarkDeclRefReferenced(clang::DeclRefExpr*,
clang::Expr const*) (/usr/bin/../lib/libclang-cpp.so.11+0x134dc9a)
 #70 0x00007f65b42a7cd5 clang::Sema::BuildDeclRefExpr(clang::ValueDecl*,
clang::QualType, clang::ExprValueKind, clang::DeclarationNameInfo const&,
clang::NestedNameSpecifierLoc, clang::NamedDecl*, clang::SourceLocation,
clang::TemplateArgumentListInfo const*)
(/usr/bin/../lib/libclang-cpp.so.11+0x1354cd5)
 #71 0x00007f65b454d5d3
clang::Sema::FixOverloadedFunctionReference(clang::Expr*,
clang::DeclAccessPair, clang::FunctionDecl*)
(/usr/bin/../lib/libclang-cpp.so.11+0x15fa5d3)
 #72 0x00007f65b4571420 (/usr/bin/../lib/libclang-cpp.so.11+0x161e420)
 #73 0x00007f65b4571e3b clang::Sema::BuildOverloadedCallExpr(clang::Scope*,
clang::Expr*, clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool,
bool) (/usr/bin/../lib/libclang-cpp.so.11+0x161ee3b)
 #74 0x00007f65b42e0134 clang::Sema::BuildCallExpr(clang::Scope*, clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation, clang::Expr*, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x138d134)
 #75 0x00007f65b42e10de clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation, clang::Expr*)
(/usr/bin/../lib/libclang-cpp.so.11+0x138e0de)
 #76 0x00007f65b38fe582
clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*,
true>) (/usr/bin/../lib/libclang-cpp.so.11+0x9ab582)
 #77 0x00007f65b38f7042
clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&,
clang::Parser::TypeCastState, bool, bool*)
(/usr/bin/../lib/libclang-cpp.so.11+0x9a4042)
 #78 0x00007f65b38fa1e8
clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool,
clang::Parser::TypeCastState, bool, bool*)
(/usr/bin/../lib/libclang-cpp.so.11+0x9a71e8)
 #79 0x00007f65b38fc796
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState)
(/usr/bin/../lib/libclang-cpp.so.11+0x9a9796)
 #80 0x00007f65b38fd3fa
clang::Parser::ParseExpression(clang::Parser::TypeCastState)
(/usr/bin/../lib/libclang-cpp.so.11+0x9aa3fa)
 #81 0x00007f65b395900e
clang::Parser::ParseExprStatement(clang::Parser::ParsedStmtContext)
(/usr/bin/../lib/libclang-cpp.so.11+0xa0600e)
 #82 0x00007f65b3956b74
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*,
clang::Parser::ParsedAttributesWithRange&)
(/usr/bin/../lib/libclang-cpp.so.11+0xa03b74)
 #83 0x00007f65b39581ce
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*)
(/usr/bin/../lib/libclang-cpp.so.11+0xa051ce)
 #84 0x00007f65b395b75b clang::Parser::ParseCompoundStatementBody(bool)
(/usr/bin/../lib/libclang-cpp.so.11+0xa0875b)
 #85 0x00007f65b395e39c clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) (/usr/bin/../lib/libclang-cpp.so.11+0xa0b39c)
 #86 0x00007f65b397e675
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*)
(/usr/bin/../lib/libclang-cpp.so.11+0xa2b675)
 #87 0x00007f65b38d6431 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&,
clang::DeclaratorContext, clang::SourceLocation*, clang::Parser::ForRangeInit*)
(/usr/bin/../lib/libclang-cpp.so.11+0x983431)
 #88 0x00007f65b3978826 (/usr/bin/../lib/libclang-cpp.so.11+0xa25826)
 #89 0x00007f65b39808dc
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) (/usr/bin/../lib/libclang-cpp.so.11+0xa2d8dc)
 #90 0x00007f65b39816a9
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0xa2e6a9)
 #91 0x00007f65b38b1caa clang::ParseAST(clang::Sema&, bool, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x95ecaa)
 #92 0x00007f65b5236499 clang::FrontendAction::Execute()
(/usr/bin/../lib/libclang-cpp.so.11+0x22e3499)
 #93 0x00007f65b51e5ede
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/bin/../lib/libclang-cpp.so.11+0x2292ede)
 #94 0x00007f65b52b3ddd
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/bin/../lib/libclang-cpp.so.11+0x2360ddd)
 #95 0x000055d14d574852 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/bin/clang-11+0x12852)
 #96 0x000055d14d571dfc (/usr/bin/clang-11+0xfdfc)
 #97 0x000055d14d56e4fd main (/usr/bin/clang-11+0xc4fd)
 #98 0x00007f65ad177152 __libc_start_main (/usr/bin/../lib/libc.so.6+0x28152)
 #99 0x000055d14d57176e _start (/usr/bin/clang-11+0xf76e)
clang-11: error: unable to execute command: Segmentation fault (core dumped)
clang-11: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 11.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/main-1a7892.cpp
clang-11: note: diagnostic msg: /tmp/main-1a7892.sh
clang-11: note: diagnostic msg: 

********************

Source code and the two diagnostic files are attached-

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201210/a8044f71/attachment-0001.html>


More information about the llvm-bugs mailing list