-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Closed as not planned
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclangClang issues not falling into any other categoryClang issues not falling into any other categorycrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]worksformeResolved as "works for me"Resolved as "works for me"
Description
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
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclangClang issues not falling into any other categoryClang issues not falling into any other categorycrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]worksformeResolved as "works for me"Resolved as "works for me"