[LLVMbugs] [Bug 15067] New: Assertion `LangOpts.CPlusPlus || LangOpts.C99' failed in clang::Lexer::tryReadUCN
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jan 25 08:42:33 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=15067
Bug #: 15067
Summary: Assertion `LangOpts.CPlusPlus || LangOpts.C99' failed
in clang::Lexer::tryReadUCN
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: eugeni.stepanov at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
SVN at r173449
$ cat 1.c
\h
$ ./build/bin/clang -std=gnu89 -E 1.c# 1 "1.c"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 153 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "1.c" 2
clang-3.3: ../tools/clang/lib/Lex/Lexer.cpp:2701: uint32_t
clang::Lexer::tryReadUCN(const char *&, const char *, clang::Token *):
Assertion `LangOpts.CPlusPlus || LangOpts.C99' failed.
0 clang-3.3 0x000000000112a645 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1 clang-3.3 0x000000000112ab33
2 libpthread.so.0 0x00007fc134882cb0
3 libc.so.6 0x00007fc133cd8425 gsignal + 53
4 libc.so.6 0x00007fc133cdbb8b abort + 379
5 libc.so.6 0x00007fc133cd10ee
6 libc.so.6 0x00007fc133cd1192
7 clang-3.3 0x0000000001361003 clang::Lexer::tryReadUCN(char const*&,
char const*, clang::Token*) + 1747
8 clang-3.3 0x00000000013651ca
clang::Lexer::LexTokenInternal(clang::Token&) + 4250
9 clang-3.3 0x00000000013653b5
clang::Lexer::LexTokenInternal(clang::Token&) + 4741
10 clang-3.3 0x0000000001313bfd
clang::DoPrintPreprocessedInput(clang::Preprocessor&, llvm::raw_ostream*,
clang::PreprocessorOutputOptions const&) + 605
11 clang-3.3 0x0000000001305c42
clang::PrintPreprocessedAction::ExecuteAction() + 290
12 clang-3.3 0x0000000001302e51 clang::FrontendAction::Execute() + 113
13 clang-3.3 0x00000000012e5f0d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 909
14 clang-3.3 0x000000000112d365
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2901
15 clang-3.3 0x000000000062c093 cc1_main(char const**, char const**, char
const*, void*) + 675
16 clang-3.3 0x0000000000628ae4 main + 3140
17 libc.so.6 0x00007fc133cc376d __libc_start_main + 237
18 clang-3.3 0x0000000000627d75
--
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.
More information about the llvm-bugs
mailing list