[LLVMbugs] [Bug 10924] New: Failed assertion: `Access != AS_none && "Access specifier is AS_none inside a record decl"'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 13 11:07:10 PDT 2011


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

           Summary: Failed assertion: `Access != AS_none && "Access
                    specifier is AS_none inside a record decl"'
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pipping at exherbo.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=7263)
 --> (http://llvm.org/bugs/attachment.cgi?id=7263)
delta-reduced input (not valid code but manages to make clang++ crash)

Although the same assertion fails in bug #8385, this does not look related to
me.

% clang++ -c test-edges0-memGKN-bcpp.ii
test-edges0-memGKN-bcpp.ii:7:46: error: out-of-line definition of
'BaryCenterArray' does not match any declaration in 'ReferenceElement<Topology,
ctype>'
class ReferenceElement< Topology, ctype > :: BaryCenterArray
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
clang: DeclBase.cpp:636: void clang::Decl::CheckAccessDeclContext() const:
Assertion `Access != AS_none && "Access specifier is AS_none inside a record
decl"' failed.
0  libLLVM-3.0svn.so 0x00007ffff738b03f
1  libLLVM-3.0svn.so 0x00007ffff738b4e9
2  libpthread.so.0   0x00007ffff6557f70
3  libc.so.6         0x00007ffff58755c5 gsignal + 53
4  libc.so.6         0x00007ffff58768c5 abort + 389
5  libc.so.6         0x00007ffff586e235 __assert_fail + 245
6  clang             0x0000000000c3df16
7  clang             0x00000000007aac04
clang::Sema::SetMemberAccessSpecifier(clang::NamedDecl*, clang::NamedDecl*,
clang::AccessSpecifier) + 372
8  clang             0x000000000094ad3f
clang::Sema::CheckClassTemplate(clang::Scope*, unsigned int,
clang::Sema::TagUseKind, clang::SourceLocation, clang::CXXScopeSpec&,
clang::IdentifierInfo*, clang::SourceLocation, clang::AttributeList*,
clang::TemplateParameterList*, clang::AccessSpecifier, unsigned int,
clang::TemplateParameterList**) + 2863
9  clang             0x000000000082eab9 clang::Sema::ActOnTag(clang::Scope*,
unsigned int, clang::Sema::TagUseKind, clang::SourceLocation,
clang::CXXScopeSpec&, clang::IdentifierInfo*, clang::SourceLocation,
clang::AttributeList*, clang::AccessSpecifier,
clang::ASTMultiPtr<clang::TemplateParameterList*>, bool&, bool&, bool, bool,
clang::ActionResult<clang::OpaquePtr<clang::QualType>, false>) + 441
10 clang             0x000000000078270d
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 4525
11 clang             0x000000000077457a
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 2778
12 clang             0x0000000000761828
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&,
clang::AccessSpecifier) + 696
13 clang             0x00000000007613a3
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 723
14 clang             0x000000000076101a
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 330
15 clang             0x0000000000773604
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 372
16 clang             0x0000000000769aeb
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1659
17 clang             0x0000000000769400
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 256
18 clang             0x0000000000751fde clang::ParseAST(clang::Sema&, bool) +
318
19 clang             0x000000000065b1ab clang::CodeGenAction::ExecuteAction() +
779
20 clang             0x000000000055ea17
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983
21 clang             0x0000000000549920
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2832
22 clang             0x0000000000541970 cc1_main(char const**, char const**,
char const*, void*) + 6128
23 clang             0x0000000000545e48 main + 632
24 libc.so.6         0x00007ffff5861c7d __libc_start_main + 253
25 clang             0x00000000005400b9
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -main-file-name test-edges0-memGKN-bcpp.ii
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1
-momit-leaf-frame-pointer -coverage-file test-edges0-memGKN-bcpp.o
-resource-dir /usr/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19
-fmessage-length 238 -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o test-edges0-memGKN-bcpp.o -x c++-cpp-output
test-edges0-memGKN-bcpp.ii 
1.      test-edges0-memGKN-bcpp.ii:8:1: current parser token '{'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.
%

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list