The crash occurs when the first token after a preamble is a macro
expansion.
Fixed by moving replayPreambleConditionalStack from Parser into
Preprocessor. It is now called right after the predefines file is
processed.
Details
Details
- Reviewers
erikjv bkramer klimek yvvan hans - Commits
- rG301eb2b8c648: Merging r311330: --------------------------------------------------------------…
rGf315000613e3: Fixed a crash on replaying Preamble's PP conditional stack.
rC311330: Fixed a crash on replaying Preamble's PP conditional stack.
rL311591: Merging r311330:
rL311330: Fixed a crash on replaying Preamble's PP conditional stack.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Can you check if the example in https://bugs.llvm.org/show_bug.cgi?id=33574 works correctly?
include/clang/Lex/Preprocessor.h | ||
---|---|---|
2029 ↗ | (On Diff #111656) | Duplicate "private:" |
Comment Actions
- Removed redundant 'private' specifier.
- Added a test for https://bugs.llvm.org/show_bug.cgi?id=33574
Comment Actions
I see this in trunk/master submitted, but not in the release_50 branch. Could this be cherry-picked to 5.0?