<html>
<head>
<base href="https://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 --- - OpenCL: Crash with a vector initializer list with a value that is a function call" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23719&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=ZOQ0OTZW3yvIfD7ZpF7LJsJaeJpxEl6aAkmJWpggKZQ&s=rcBCjjuTRcl9PQWllkKF6_jZtEPVsoCCwPj8SgHDAsI&e=">23719</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>OpenCL: Crash with a vector initializer list with a value that is a function call
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>pekka.jaaskelainen@tut.fi
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=14411" name="attach_14411" title="backtrace">attachment 14411</a> <a href="attachment.cgi?id=14411&action=edit" title="backtrace">[details]</a></span>
backtrace
// reproduce with:
// clang -DBUG test_vec_init.c -c -emit-llvm -o - -S
typedef float float2 __attribute__((__ext_vector_type__(2)));
float2 func(float2 a) {
return a;
}
void test_vec_init() {
volatile float2 a = (float2) ( 1.0f, 2.0f );
#ifndef BUG
// This works.
volatile float2 res = func(a);
volatile float2 x =
(float2) (res.x, res.y);
#else
// This crashes.
volatile float2 x =
(float2) (func(a).x, a.x);
#endif
}
When compiled in C mode (without -x cl) it doesn't crash.
Backtrace attached.</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>