[LLVMbugs] [Bug 13411] New: comment parser shocks on simple comment (assert and abort)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 19 14:49:08 PDT 2012


             Bug #: 13411
           Summary: comment parser shocks on simple comment (assert and
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: devlists at shadowlab.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 8928
  --> http://llvm.org/bugs/attachment.cgi?id=8928
Reduced test case

$ clang -Wdocumentation -fsyntax-only crash.c

Assertion failed: (Tok.is(tok::verbatim_block_end)), function
parseVerbatimBlock, file clang/lib/AST/CommentParser.cpp, line 381.
5  clang             0x0000000105f00911 __assert_rtn + 81
6  clang             0x000000010543731a
clang::comments::Parser::parseVerbatimBlock() + 890
7  clang             0x0000000105437708
clang::comments::Parser::parseFullComment() + 184
8  clang             0x00000001053dadfd
clang::ASTContext::getCommentForDecl(clang::Decl const*) const 

---- crash.c

 * GError:
 * @domain: error domain, e.g. #G_FILE_ERROR
 * @code: error code, e.g. %G_FILE_ERROR_NOENT
 * @message: human-readable informative error message
 * The <structname>GError</structname> structure contains
 * information about an error that has occurred.
typedef struct _GError GError;


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