This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51868] New: Crash when generating the move constructor for a class with a bit field
- From: "ogoffart at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Jan 2012 14:20:38 +0000
- Subject: [Bug c++/51868] New: Crash when generating the move constructor for a class with a bit field
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51868
Bug #: 51868
Summary: Crash when generating the move constructor for a class
with a bit field
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ogoffart@kde.org
Created attachment 26341
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26341
testcase
See the attached example.
Compilation flag used: -std=c++0x
gcc crashes with:
bitfield.cc: In constructor âB::B(B&&)â:
bitfield.cc:7:8: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Reproduced with GCC 4.6.2 from archlinux binary package, and gcc 4.7 from
trunk.
Used to work with GCC 4.6.1