[LLVMbugs] [Bug 6770] New: clang::Sema::ActOnTag(...): Assertion `Previous.isSingleResult()' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 2 13:48:16 PDT 2010


           Summary: clang::Sema::ActOnTag(...): Assertion
                    `Previous.isSingleResult()' failed
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: evan at chromium.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Created an attachment (id=4627)
 --> (http://llvm.org/bugs/attachment.cgi?id=4627)
reduction of problem

Hit while trying to -fsyntax-only Chromium.
clang version 1.5 (trunk 100211)

template <class T>
void f() {
  friend class f;

$ clang++ -c reduce.cc
reduce.cc:3:3: error: 'friend' used outside of class
  friend class f;
clang: SemaDecl.cpp:4912: virtual clang::OpaquePtr<0>
clang::Sema::ActOnTag(clang::Scope*, unsigned int, clang::Action::TagUseKind,
clang::SourceLocation, const clang::CXXScopeSpec&, clang::IdentifierInfo*,
clang::SourceLocation, clang::AttributeList*, clang::AccessSpecifier,
clang::ASTMultiPtr<&clang::ActionBase::DeleteTemplateParams>, bool&, bool&):
Assertion `Previous.isSingleResult()' failed.
0  clang           0x00000000011a1e8f
1  clang           0x00000000011a291a
2  libpthread.so.0 0x00007f92166b4190
3  libc.so.6       0x00007f92159ba4b5 gsignal + 53
4  libc.so.6       0x00007f92159bdf50 abort + 384
5  libc.so.6       0x00007f92159b3481 __assert_fail + 241
6  clang           0x00000000006328fc
7  clang           0x0000000000936525
8  clang           0x0000000000929df4
9  clang           0x000000000092e67b
10 clang           0x000000000092e7d6
11 clang           0x0000000000915c79
12 clang           0x00000000009169c6
13 clang           0x0000000000917101
14 clang           0x00000000009225a0
15 clang           0x00000000009504b9
16 clang           0x0000000000950921
17 clang           0x0000000000950bab
18 clang           0x000000000092e8ad
19 clang           0x0000000000922d70
20 clang           0x0000000000922f7a
21 clang           0x00000000005f2beb
22 clang           0x00000000004103a9
23 clang           0x000000000040294c
24 clang           0x00000000004057e1 main + 2417
25 libc.so.6       0x00007f92159a5abd __libc_start_main + 253
26 clang           0x00000000004002a9
Stack dump:
0.    Program arguments: /work/chrome/llvm/Release/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name reduce.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/work/chrome/llvm/Release/lib/clang/1.5 -fmessage-length 129 -fexceptions
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-vZAHfq.s
-x c++ reduce.cc 
1.    reduce.cc:3:17: current parser token ';'
2.    reduce.cc:2:10: parsing function body 'f'
3.    reduce.cc:2:10: in compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see

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