[LLVMbugs] [Bug 11120] New: Assert in llvm\tools\clang\lib\Lex\PreprocessingRecord.cpp

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 12 08:10:33 PDT 2011


           Summary: Assert in
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hans.walheim at gmail.com
                CC: llvmbugs at cs.uiuc.edu

> c-index-test -test-load-source all test\file.cpp -std=c++0x -I .\test

with file.cpp containing:

#define FILE_HEADER_NAME "fileheader.h"

#if defined(FILE_HEADER_NAME)

gives following assert:
Assertion failed: (PreprocessedEntities.empty() ||
PreprocessedEntities.back()->getSourceRange().getBegin())) && "Adding a
preprocessed entity that is before the previous one in TU", file
..\..\..\..\..llvm\tools\clang\lib\Lex\PreprocessingRecord.cpp, line 176

I guess the checkin that introduced this was
Author: akirtzidis
Date: Mon Sep 19 15:40:25 2011
New Revision: 140058

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