Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert in llvm\tools\clang\lib\Lex\PreprocessingRecord.cpp #11492

Closed
llvmbot opened this issue Oct 12, 2011 · 3 comments
Closed

Assert in llvm\tools\clang\lib\Lex\PreprocessingRecord.cpp #11492

llvmbot opened this issue Oct 12, 2011 · 3 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Oct 12, 2011

Bugzilla Link 11120
Resolution FIXED
Resolved on Oct 12, 2011 12:37
Version trunk
OS Windows NT
Reporter LLVM Bugzilla Contributor
CC @akyrtzi,@tkremenek

Extended Description

Running

c-index-test -test-load-source all test\file.cpp -std=c++0x -I .\test

with file.cpp containing:

#define FILE_HEADER_NAME "fileheader.h"

#if defined(FILE_HEADER_NAME)
#include FILE_HEADER_NAME
#endif

gives following assert:
Assertion failed: (PreprocessedEntities.empty() || !SourceMgr.isBeforeInTranslationUnit(Entity->getSourceRange().getBegin(), PreprocessedEntities.back()->getSourceRange().getBegin())) && "Adding a preprocessed entity that is before the previous one in TU", file ..........llvm\tools\clang\lib\Lex\PreprocessingRecord.cpp, line 176

I guess the checkin that introduced this was
Author: akirtzidis
Date: Mon Sep 19 15:40:25 2011
New Revision: 140058

@llvmbot
Copy link
Collaborator Author

llvmbot commented Oct 12, 2011

assigned to @akyrtzi

@tkremenek
Copy link
Contributor

cloned to rdar://problem/10273508

@akyrtzi
Copy link
Contributor

akyrtzi commented Oct 12, 2011

Fixed in r141788, thanks for the report!

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category
Projects
None yet
Development

No branches or pull requests

3 participants