Skip to content

PreprocessingRecord assertion failure, line 257 #14389

Closed as not planned
Closed as not planned
@llvmbot

Description

@llvmbot
Bugzilla Link 14017
Version trunk
OS Windows NT
Attachments The source that triggers the error
Reporter LLVM Bugzilla Contributor

Extended Description

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclangClang issues not falling into any other categorycrashPrefer [crash-on-valid] or [crash-on-invalid]worksformeResolved as "works for me"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions