[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


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

           Summary: Assert in
                    llvm\tools\clang\lib\Lex\PreprocessingRecord.cpp
           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


Running
> 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)
#include FILE_HEADER_NAME
#endif

gives following assert:
Assertion failed: (PreprocessedEntities.empty() ||
!SourceMgr.isBeforeInTranslationUnit(Entity->getSourceRange().getBegin(),
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