<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Crash on _Complex int = 1i;"
href="http://llvm.org/bugs/show_bug.cgi?id=15966">15966</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash on _Complex int = 1i;
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>klimek@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>$ 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;</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>