[LLVMbugs] [Bug 12254] New: Assertion failed: (Tok.is(tok::l_brace) || (getLangOpts().CPlusPlus && Tok.is(tok::colon)) || isCXX0XFinalKeyword()), function ParseClassSpecifier, file ParseDeclCXX.cpp, line 1322.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 12 09:45:27 PDT 2012


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

             Bug #: 12254
           Summary: Assertion failed: (Tok.is(tok::l_brace) ||
                    (getLangOpts().CPlusPlus && Tok.is(tok::colon)) ||
                    isCXX0XFinalKeyword()), function ParseClassSpecifier,
                    file ParseDeclCXX.cpp, line 1322.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


pes delta-2006.08.03$ cat hv.c
  static void S_hsplit( HV *hv) {
      (a = ((void)(sizeof(char) > 1 && ((size_t)(((newsize) * sizeof(HE*)) +
(((hv)->sv_flags & 0x02000000) ? sizeof(struct xpvhv_aux) : 0))+0.0) >
((size_t)~0)/sizeof(char) && (Perl_croak("%s",(PL_memory_wrap)),0)),
(char*)(Perl_safesysmalloc((size_t)((((newsize) * sizeof(HE*)) +
(((hv)->sv_flags & 0x02000000) ? sizeof(struct xpvhv_aux) :
0))*sizeof(char))))));

pes delta-2006.08.03$ clang hv.c

warnings and errors

Assertion failed: (Tok.is(tok::l_brace) || (getLangOpts().CPlusPlus &&
Tok.is(tok::colon)) || isCXX0XFinalKeyword()), function ParseClassSpecifier,
file ParseDeclCXX.cpp, line 1322.
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.2 -emit-obj -mrelax-all -disable-free -main-file-name
hv.c -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64
-momit-leaf-frame-pointer -resource-dir /usr/local/bin/../lib/clang/3.1
-fmodule-cache-path /var/tmp/clang-module-cache -fdebug-compilation-dir
/tmp/delta-2006.08.03 -ferror-limit 19 -fmessage-length 152 -mstackrealign
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/hv-GwgSYe.o -x c hv.c
1.      hv.c:2:134: current parser token ')'
2.      hv.c:1:33: parsing function body 'S_hsplit'
3.      hv.c:1:33: in compound statement ('{}')
clang: error: unable to execute command: Abort trap: 6 (core dumped)
clang: error: clang frontend command failed due to signal (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: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/hv-0eV6TK.i
clang: note: diagnostic msg: /tmp/hv-0eV6TK.sh

-- 
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