[LLVMbugs] [Bug 23068] New: Clang crash with 3.5 but not 3.4: Error: Field->isUnnamedBitfield() && "Only unnamed bitfields allowed"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Mar 30 03:29:53 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23068
Bug ID: 23068
Summary: Clang crash with 3.5 but not 3.4: Error:
Field->isUnnamedBitfield() && "Only unnamed bitfields
allowed"
Product: clang
Version: 3.5
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: asg.msft at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 14119
--> https://llvm.org/bugs/attachment.cgi?id=14119&action=edit
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
http://source.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.
--
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/20150330/9dc0b58d/attachment.html>
More information about the llvm-bugs
mailing list