[LLVMbugs] [Bug 19018] New: Assertion `Access != AS_none && "Access specifier is AS_none inside a record decl"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 1 16:40:13 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=19018

            Bug ID: 19018
           Summary: Assertion `Access != AS_none && "Access specifier is
                    AS_none inside a record decl"' failed
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vanyacpp at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

struct foo1 
{
    short foo6 (enum bar0 {} bar3);
};


clang: DeclBase.cpp:697: bool clang::Decl::AccessDeclContextSanity() const:
Assertion `Access != AS_none && "Access specifier is AS_none inside a record
decl"' failed.
0  clang           0x000000000383beae llvm::sys::PrintStackTrace(_IO_FILE*) +
46
1  clang           0x000000000383c17b
2  clang           0x000000000383d70a
3  libpthread.so.0 0x00007f834f7c2bd0
4  libc.so.6       0x00007f834e7d7037 gsignal + 55
5  libc.so.6       0x00007f834e7da698 abort + 328
6  libc.so.6       0x00007f834e7cfe03
7  libc.so.6       0x00007f834e7cfeb2
8  clang           0x00000000020c36f4 clang::Decl::AccessDeclContextSanity()
const + 324
9  clang           0x0000000000ad1e97
10 clang           0x0000000000f144a2
clang::Sema::SetMemberAccessSpecifier(clang::NamedDecl*, clang::NamedDecl*,
clang::AccessSpecifier) + 66
11 clang           0x0000000000fdd2df clang::Sema::ActOnTag(clang::Scope*,
unsigned int, clang::Sema::TagUseKind, clang::SourceLocation,
clang::CXXScopeSpec&, clang::IdentifierInfo*, clang::SourceLocation,
clang::AttributeList*, clang::AccessSpecifier, clang::SourceLocation,
llvm::MutableArrayRef<clang::TemplateParameterList*>, bool&, bool&,
clang::SourceLocation, bool,
clang::ActionResult<clang::OpaquePtr<clang::QualType>, false>, bool) + 12415
12 clang           0x0000000000e59f4e
clang::Parser::ParseEnumSpecifier(clang::SourceLocation, clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 4862
13 clang           0x0000000000e540dc
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 10380
14 clang           0x0000000000e6325d
clang::Parser::ParseParameterDeclarationClause(clang::Declarator&,
clang::ParsedAttributes&,
llvm::SmallVectorImpl<clang::DeclaratorChunk::ParamInfo>&,
clang::SourceLocation&) + 285
15 clang           0x0000000000e619c3
clang::Parser::ParseFunctionDeclarator(clang::Declarator&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&, bool, bool) + 771
16 clang           0x0000000000e6043d
clang::Parser::ParseDirectDeclarator(clang::Declarator&) + 4157
17 clang           0x0000000000e5ed48
clang::Parser::ParseDeclaratorInternal(clang::Declarator&, void
(clang::Parser::*)(clang::Declarator&)) + 1304
18 clang           0x0000000000e49654
clang::Parser::ParseDeclarator(clang::Declarator&) + 52
19 clang           0x0000000000e7356c
clang::Parser::ParseCXXMemberDeclaratorBeforeInitializer(clang::Declarator&,
clang::VirtSpecifiers&, clang::ActionResult<clang::Expr*, true>&,
clang::Parser::LateParsedAttrList&) + 108
20 clang           0x0000000000e7433f
clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier,
clang::AttributeList*, clang::Parser::ParsedTemplateInfo const&,
clang::ParsingDeclRAIIObject*) + 2975
21 clang           0x0000000000e7217e
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation,
clang::SourceLocation, clang::Parser::ParsedAttributesWithRange&, unsigned int,
clang::Decl*) + 3790
22 clang           0x0000000000e70d3e
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext,
clang::Parser::ParsedAttributesWithRange&) + 9374
23 clang           0x0000000000e54050
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 10240
24 clang           0x0000000000e3b5f6
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 102
25 clang           0x0000000000e3b113
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 147
26 clang           0x0000000000e3a6f8
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 3448
27 clang           0x0000000000e39757
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 695
28 clang           0x0000000000e343a7 clang::ParseAST(clang::Sema&, bool, bool)
+ 343
29 clang           0x00000000008ce60e clang::ASTFrontendAction::ExecuteAction()
+ 334
30 clang           0x0000000000bba085 clang::CodeGenAction::ExecuteAction() +
1477
31 clang           0x00000000008cddff clang::FrontendAction::Execute() + 191
32 clang           0x0000000000898c1b
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 779
33 clang           0x000000000085b5a4
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1028
34 clang           0x0000000000849429 cc1_main(char const**, char const**, char
const*, void*) + 697
35 clang           0x00000000008555ee main + 814
36 libc.so.6       0x00007f834e7c1ea5 __libc_start_main + 245
37 clang           0x00000000008490a5
Stack dump:
0.      Program arguments: /home/ivan/d/llvm/Debug+Asserts/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name 1.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu x86-64 -target-linker-version 2.23.2 -resource-dir
/home/ivan/d/llvm/Debug+Asserts/bin/../lib/clang/3.5 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/backward
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7
-internal-isystem /usr/local/include -internal-isystem
/home/ivan/d/llvm/Debug+Asserts/bin/../lib/clang/3.5/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdeprecated-macro -fdebug-compilation-dir
/home/ivan/d/cppgen-build-desktop-Qt___PATH________ -ferror-limit 0
-fmessage-length 180 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -o
/tmp/1-809959.o -x c++ 1.cpp 
1.      1.cpp:3:27: current parser token '{'
2.      1.cpp:1:1: parsing struct/union/class body 'foo1'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5 (git at github.com:llvm-mirror/clang.git
884e03fdac43b727b950cb1a5944e704caf9c016) (git at github.com:llvm-mirror/llvm.git
5d74ffcbdbe38a4ebdfa38f2ac22f84280ce4312)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:

-- 
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/20140302/a8f81fbe/attachment.html>


More information about the llvm-bugs mailing list