[LLVMbugs] [Bug 15966] New: Crash on _Complex int = 1i;
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 10 12:48:04 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15966
Bug ID: 15966
Summary: Crash on _Complex int = 1i;
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: klimek at google.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ cat t.cc
_Complex long long l = 42i;
clang++ t.cc -fsyntax-only
clang-3.3: /home/klimek/src/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp:2787:
ExprResult clang::Sema::PerformImplicitConversion(clang::Expr *,
clang::QualType, const clang::StandardConversionSequence &,
clang::Sema::AssignmentAction, clang::Sema::CheckedConversionKind): Assertion
`From->getType()->isIntegerType()' failed.
Stack dump:
0. Program arguments: /home/klimek/build/system/bin/clang-3.3 -cc1 -triple
x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name t.cc
-mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir
/home/klimek/build/system/bin/../lib/clang/3.4 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/x86_64-linux-gnu/c++/4.6
-internal-isystem /usr/local/include -internal-isystem
/home/klimek/build/system/bin/../lib/clang/3.4/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdeprecated-macro -fdebug-compilation-dir /tmp -ferror-limit 19
-fmessage-length 205 -mstackrealign -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-x c++ t.cc
1. t.cc:1:27: current parser token ';'clang-3.3: error: unable to execute
command: Aborted (core dumped)clang-3.3: error: clang frontend command failed
due to signal (use -v to see invocation)clang version 3.4 Target:
x86_64-unknown-linux-gnuThread model: posix
Works fine for doubles:
$ cat t2.cc
_Complex double d = 4.2i;
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130510/3ce61f84/attachment.html>
More information about the llvm-bugs
mailing list