[LLVMbugs] [Bug 14017] New: PreprocessingRecord assertion failure, line 257

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 4 05:46:38 PDT 2012


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

             Bug #: 14017
           Summary: PreprocessingRecord assertion failure, line 257
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: plc at rowley.co.uk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9305
  --> http://llvm.org/bugs/attachment.cgi?id=9305
The source that triggers the error

Clang fails with a correct source file:

E:\llvm\llvm\bin\Debug>c-index-test -test-load-source all fail.c
Assertion failed: (PreprocessedEntities.empty() ||
!SourceMgr.isBeforeInTranslat
ionUnit(BeginLoc, PreprocessedEntities.back()->getSourceRange().getBegin())) &&
"a macro directive was encountered out-of-order", file
.\PreprocessingRecord.cpp
, line 257
libclang: crash detected during parsing: {
  'source_filename' : '(null)'
  'command_line_args' : ['fail.c'],
  'unsaved_files' : [],
  'options' : 1,
}
Unable to load translation unit!

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