[llvm-bugs] [Bug 39972] New: Assertion failure in clang::Sema::BuildDelegatingInitializer
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Dec 12 02:26:03 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39972
Bug ID: 39972
Summary: Assertion failure in
clang::Sema::BuildDelegatingInitializer
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++'17
Assignee: unassignedclangbugs at nondot.org
Reporter: hokein at google.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
$ cat test-clang__Sema__BuildDelegatingInitializer.cc
class a {
struct b { operator a(
} template <typename> using c = b : a() : a(c<int>()) {%
$ ./clang test-clang__Sema__BuildDelegatingInitializer.cc -std=c++17
test-clang__Sema__BuildDelegatingInitializer.cc:3:3: error: expected parameter
declarator
} template <typename> using c = b : a() : a(c<int>()) {
^
test-clang__Sema__BuildDelegatingInitializer.cc:3:3: error: expected ')'
test-clang__Sema__BuildDelegatingInitializer.cc:2:34: note: to match this '('
struct b { operator a(
^
test-clang__Sema__BuildDelegatingInitializer.cc:2:35: error: expected ';' at
end of declaration list
struct b { operator a(
^
;
test-clang__Sema__BuildDelegatingInitializer.cc:3:4: error: expected ';' after
struct
} template <typename> using c = b : a() : a(c<int>()) {
^
;
test-clang__Sema__BuildDelegatingInitializer.cc:3:37: error: expected ';' after
alias declaration
} template <typename> using c = b : a() : a(c<int>()) {
^
;
test-clang__Sema__BuildDelegatingInitializer.cc:3:58: error: expected '}'
} template <typename> using c = b : a() : a(c<int>()) {
^
test-clang__Sema__BuildDelegatingInitializer.cc:1:9: note: to match this '{'
class a {
^
WARNING: Logging before InitGoogle() is written to STDERR
F1212 11:27:25.973386 220045 logging.cc:82] assert.h assertion failed at
third_party/llvm/llvm/include/llvm/Support/Casting.h:255 in typename
cast_retty<X, Y *>::ret_type llvm::cast(Y *) [X = clang::CXXConstructExpr, Y =
clang::Expr]: isa<X>(Val) && "cast<Ty>() argument of incompatible type!"
*** Check failure stack trace: ***
@ 0x559961def08b clang::Sema::BuildDelegatingInitializer()
@ 0x559961dee3a2 clang::Sema::BuildBaseInitializer()
@ 0x559961decc4a clang::Sema::BuildMemInitializer()
@ 0x559961ded4cd clang::Sema::ActOnMemInitializer()
@ 0x55996193027b clang::Parser::ParseMemInitializer()
@ 0x55996192f5ec clang::Parser::ParseConstructorInitializer()
@ 0x5599618cb7b1 clang::Parser::ParseLexedMethodDef()
@ 0x5599618ca175 clang::Parser::ParseLexedMethodDefs()
@ 0x559961928aa2 clang::Parser::ParseCXXMemberSpecification()
@ 0x559961926edf clang::Parser::ParseClassSpecifier()
@ 0x55996193f443 clang::Parser::ParseDeclarationSpecifiers()
@ 0x5599618b4c90 clang::Parser::ParseDeclOrFunctionDefInternal()
@ 0x5599618b49ec clang::Parser::ParseDeclarationOrFunctionDefinition()
@ 0x5599618b3637 clang::Parser::ParseExternalDeclaration()
@ 0x5599618b23ff clang::Parser::ParseTopLevelDecl()
@ 0x5599618b1f98 clang::Parser::ParseFirstTopLevelDecl()
@ 0x5599618ad1e5 clang::ParseAST()
@ 0x5599616d47a3 clang::FrontendAction::Execute()
@ 0x5599615561e1 clang::CompilerInstance::ExecuteAction()
@ 0x559960a2f5e5 clang::ExecuteCompilerInvocation()
--
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/20181212/79e91b45/attachment-0001.html>
More information about the llvm-bugs
mailing list