This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51868] New: Crash when generating the move constructor for a class with a bit field


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]