Bug#691989: clang: ICE when a class with multiple copy constructors is in a union
Ben Longbons
brlongbons at gmail.com
Wed Oct 31 23:01:37 UTC 2012
Package: clang
Version: 3.1-8
Severity: normal
Tags: upstream patch fixed-upstream
upstream bug url: http://llvm.org/bugs/show_bug.cgi?id=13480
Dear Maintainer,
The below code segfaults clang. This uses a C++11 feature that was not
implemented in clang 3.0, and it has been fixed in trunk for 3.2.
I am attaching a backported, slightly edited version of the patch.
// compile with -std=c++11
struct String
{
String(const String&);
String(String&);
};
union Impl
{
String first;
};
*** Please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these lines ***
-- System Information:
Debian Release: wheezy/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages clang depends on:
ii libc6 2.13-35
ii libclang-common-dev 3.1-8
ii libffi5 3.0.10-3
ii libgcc1 1:4.7.1-7
ii libllvm3.1 3.1-2
ii libstdc++6 4.7.1-7
ii libstdc++6-4.6-dev 4.6.3-11
Versions of packages clang recommends:
ii llvm-3.1-dev 3.1-2
ii python 2.7.3~rc2-1
clang suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Backport-two-patches-from-trunk-to-3.1.patch
Type: text/x-diff
Size: 2213 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20121031/117e0fb2/attachment.patch>
More information about the Pkg-llvm-team
mailing list