http://llvm.org/bugs/show_bug.cgi?id=11500
Bug #: 11500
Summary: clang_saveTranslationUnit() crashes, when saving TU
with precompiledPreamble.
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
There is a problem, when i try to save TU, that was parsed and then
reparsed(!!) with following flags 0x14(CX_TranslationUnit_precompiledPreamble |
CX_TranslationUnit_CXXprecompiledPreamble) (it works the same also when only
first flag is set, however reparse is mandatory(im suspecting, that first parse
doesnt take into account the above mentioned flag)).
After calling clang_saveTranslationUnit() and assertion condition is met, at
the program that called this function crashes completely with SIGABRT.
Following message is written to output:
ASTWriter.cpp:3422: clang::serialization::DeclID
clang::ASTWriter::getDeclID(const clang::Decl*): Assertion `DeclIDs.find(D) !=
DeclIDs.end() && "Declaration not emitted!"' failed.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs