[LLVMbugs] [Bug 19023] New: Assertion `Access == AS_private || Access == AS_protected' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 2 03:00:10 PST 2014


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

            Bug ID: 19023
           Summary: Assertion `Access == AS_private || Access ==
                    AS_protected' 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

void foo1 (struct foo4 
{
    void qux0 (struct bar4 {} foo1);
} baz6)[bar4]
{}

clang: SemaAccess.cpp:743: AccessResult HasAccess(clang::Sema &, const
<anonymous>::EffectiveContext &, const clang::CXXRecordDecl *,
clang::AccessSpecifier, const <anonymous>::AccessTarget &): Assertion `Access
== AS_private || Access == AS_protected' failed.
0  clang           0x000000000394bf0e llvm::sys::PrintStackTrace(_IO_FILE*) +
46
1  clang           0x000000000394c1db
2  clang           0x000000000394d69a
3  libpthread.so.0 0x00007f71c7c57bd0
4  libc.so.6       0x00007f71c6c6c037 gsignal + 55
5  libc.so.6       0x00007f71c6c6f698 abort + 328
6  libc.so.6       0x00007f71c6c64e03
7  libc.so.6       0x00007f71c6c64eb2
8  clang           0x0000000000f7c750
9  clang           0x0000000000f7ba37
10 clang           0x0000000000f78bf3
11 clang           0x0000000000f78a51
clang::Sema::HandleDelayedAccessCheck(clang::sema::DelayedDiagnostic&,
clang::Decl*) + 337
12 clang           0x000000000106acbd
clang::Sema::PopParsingDeclaration(clang::Sema::DelayedDiagnosticsState,
clang::Decl*) + 365
13 clang           0x0000000000ea4ca4
14 clang           0x0000000000ea4c56
15 clang           0x0000000000e9bcaf
16 clang           0x0000000000e9ac7b
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) +
2267
17 clang           0x0000000000eb2d53
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 467
18 clang           0x0000000000e9a1a2
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 1234
19 clang           0x0000000000e99853
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 147
20 clang           0x0000000000e98e31
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 3521
21 clang           0x0000000000e97e48
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 696
22 clang           0x0000000000e938f7 clang::ParseAST(clang::Sema&, bool, bool)
+ 343
23 clang           0x0000000000910c7e clang::ASTFrontendAction::ExecuteAction()
+ 334
24 clang           0x0000000000c11935 clang::CodeGenAction::ExecuteAction() +
1477
25 clang           0x000000000091046f clang::FrontendAction::Execute() + 191
26 clang           0x00000000008d8fab
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 779
27 clang           0x0000000000897584
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1028
28 clang           0x0000000000884fc9 cc1_main(char const**, char const**, char
const*, void*) + 697
29 clang           0x000000000089139e main + 814
30 libc.so.6       0x00007f71c6c56ea5 __libc_start_main + 245
31 clang           0x0000000000884c45
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-b8584e.o -x c++ 1.cpp 
1.      1.cpp:5:1: current parser token '{'
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
30577e6c4f5ba66b8dc832ed9955b1a7475f788a) (git at github.com:llvm-mirror/llvm.git
c9bf74fdc543c2da90f334e0bf8e34b128c8a615)
Target: x86_64-unknown-linux-gnu

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


More information about the llvm-bugs mailing list