<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 --- - Clang crash with 3.5 but not 3.4: Error: Field->isUnnamedBitfield() && "Only unnamed bitfields allowed""
href="https://llvm.org/bugs/show_bug.cgi?id=23068">23068</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang crash with 3.5 but not 3.4: Error: Field->isUnnamedBitfield() && "Only unnamed bitfields allowed"
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.5
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>asg.msft@gmail.com
</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=14119" name="attach_14119" title="generated .ii file">attachment 14119</a> <a href="attachment.cgi?id=14119&action=edit" title="generated .ii file">[details]</a></span>
generated .ii file
Version Info (Both main trunk and from Android NDK r10d)
------------
clang version 3.5
Target: armv7-none-linux-androideabi
NOTE: This crash doesn't occur with Clang 3.4
Compilation Command:
%ClangROOT%\clang++.exe -target armv7-none-linux-androideabi -std=c++11
-fms-extensions -gcc-toolchain
%NDKROOT%/Android/ndk/android-ndk-r10d/toolchains -c foo1.cpp -save-temps -v
Error on command prompt:
File: /s/ndk-toolchain/src/llvm-3.5/llvm/tools/clang/lib/CodeGen/CGExprAgg.cpp,
Line 1172
Expression: Field->isUnnamedBitfield() && "Only unnamed bitfields allowed"
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
clang++.exe: error: clang frontend command failed with exit code 3 (use -v to
se
e invocation)
clang version 3.5
Target: armv7-none-linux-androideabi
Thread model: posix
clang++.exe: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://source.a">http://source.a</a>
ndroid.com/source/report-bugs.html and include the crash backtrace,
preprocessed
source, and associated run script.
clang++.exe: note: diagnostic msg:
Attached .ii file as well.
foo1:cpp
-------
typedef struct _BAR
{
unsigned char c1;
} BAR;
typedef struct _FOO : BAR
{
unsigned char c2;
} FOO;
struct MyStruct
{
FOO a;
union {struct {int b;};};
};
void foo()
{
MyStruct x = {};
}
Thanks.</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>