[LLVMbugs] [Bug 17587] New: Assertion failure on class definition with attribute
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 14 18:41:52 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17587
Bug ID: 17587
Summary: Assertion failure on class definition with attribute
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: rtrieu at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Code:
class [[clang::warn_unused_result]] Status;
//Uncomment to not crash
//class Status {};
class Foo {
Status Bar();
};
Command line:
clang -std=c++11 unused-result.cc
Assertion:
clang-3.3: llvm/tools/clang/include/clang/AST/DeclCXX.h:569: const
clang::CXXRecordDecl::DefinitionData& clang::CXXRecordDecl::data() const:
Assertion `DefinitionData && "queried property of class with no definition"'
failed.
Backtrace snippet:
#4 0x0000000000435da8 in clang::CXXRecordDecl::data (this=0x45775c0)
at llvm/tools/clang/include/clang/AST/DeclCXX.h:569
#5 0x0000000000435ea2 in clang::CXXRecordDecl::bases_begin (this=0x45775c0)
at llvm/tools/clang/include/clang/AST/DeclCXX.h:685
#6 0x00000000017b96cc in clang::CXXMethodDecl::getCorrespondingMethodInClass (
this=0x45c4f70, RD=0x45775c0, MayBeBase=true)
at llvm/tools/clang/lib/AST/DeclCXX.cpp:1376
#7 0x00000000005bec9a in clang::CXXMethodDecl::getCorrespondingMethodInClass (
this=0x45c4f70, RD=0x45775c0, MayBeBase=true)
at llvm/tools/clang/include/clang/AST/DeclCXX.h:1802
#8 0x000000000149f2fd in clang::Sema::ActOnFunctionDeclarator (
this=0x45910f0, S=0x4569260, D=..., DC=0x45776e8, TInfo=0x45778b0,
Previous=..., TemplateParamLists=..., AddToScope=@0x7fffffff981f: true)
at llvm/tools/clang/lib/Sema/SemaDecl.cpp:6914
#9 0x00000000014955cc in clang::Sema::HandleDeclarator (this=0x45910f0,
S=0x4569260, D=..., TemplateParamLists=...)
at llvm/tools/clang/lib/Sema/SemaDecl.cpp:4317
#10 0x00000000013fd683 in clang::Sema::ActOnCXXMemberDeclarator (
this=0x45910f0, S=0x4569260, AS=clang::AS_private, D=...,
TemplateParameterLists=..., BW=0x0, VS=..., InitStyle=clang::ICIS_NoInit)
at llvm/tools/clang/lib/Sema/SemaDeclCXX.cpp:2002
#11 0x00000000010bdd4a in clang::Parser::ParseCXXClassMemberDeclaration (
this=0x45ac460, AS=clang::AS_private, AccessAttrs=0x0, TemplateInfo=...,
TemplateDiags=0x0)
at llvm/tools/clang/lib/Parse/ParseDeclCXX.cpp:2279
#12 0x00000000010bf49b in clang::Parser::ParseCXXMemberSpecification (
this=0x45ac460, RecordLoc=..., AttrFixitLoc=..., Attrs=..., TagType=18,
TagDecl=0x45776b0)
at llvm/tools/clang/lib/Parse/ParseDeclCXX.cpp:2655
#13 0x00000000010bbab4 in clang::Parser::ParseClassSpecifier (this=0x45ac460,
TagTokKind=clang::tok::kw_class, StartLoc=..., DS=..., TemplateInfo=...,
AS=clang::AS_none, EnteringContext=true, DSC=clang::Parser::DSC_top_level,
Attributes=...)
at llvm/tools/clang/lib/Parse/ParseDeclCXX.cpp:1606
--
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/20131015/37e7aec7/attachment.html>
More information about the llvm-bugs
mailing list