public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51611] New: [c++0x] ICE with non-static data member initializer and virtual base class
@ 2011-12-18 20:54 reichelt at gcc dot gnu.org
  2011-12-19 23:27 ` [Bug c++/51611] " paolo.carlini at oracle dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-12-18 20:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51611

             Bug #: 51611
           Summary: [c++0x] ICE with non-static data member initializer
                    and virtual base class
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: reichelt@gcc.gnu.org


The following valid code snippet triggers an ICE on trunk:

========================
struct A
{
  int i;
};

struct B : virtual A
{
  int j = i;
};
========================

bug.cc:8:11: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/51611] [c++0x] ICE with non-static data member initializer and virtual base class
  2011-12-18 20:54 [Bug c++/51611] New: [c++0x] ICE with non-static data member initializer and virtual base class reichelt at gcc dot gnu.org
@ 2011-12-19 23:27 ` paolo.carlini at oracle dot com
  2011-12-21 19:21 ` jason at gcc dot gnu.org
  2011-12-21 20:22 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-19 23:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51611

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-12-19
     Ever Confirmed|0                           |1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/51611] [c++0x] ICE with non-static data member initializer and virtual base class
  2011-12-18 20:54 [Bug c++/51611] New: [c++0x] ICE with non-static data member initializer and virtual base class reichelt at gcc dot gnu.org
  2011-12-19 23:27 ` [Bug c++/51611] " paolo.carlini at oracle dot com
@ 2011-12-21 19:21 ` jason at gcc dot gnu.org
  2011-12-21 20:22 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-12-21 19:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51611

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-12-21 19:19:52 UTC ---
Author: jason
Date: Wed Dec 21 19:19:47 2011
New Revision: 182602

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182602
Log:
    PR c++/51611
    * cp-tree.h (CONVERT_EXPR_VBASE_PATH): New.
    * class.c (build_base_path): Defer vbase conversion in an NSDMI.
    * tree.c (bot_replace): Expand it here.
    * cp-gimplify.c (cp_genericize_r): Make sure deferred conversion
    doesn't leak into GENERIC.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/nsdmi-virtual1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/cp/cp-gimplify.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/51611] [c++0x] ICE with non-static data member initializer and virtual base class
  2011-12-18 20:54 [Bug c++/51611] New: [c++0x] ICE with non-static data member initializer and virtual base class reichelt at gcc dot gnu.org
  2011-12-19 23:27 ` [Bug c++/51611] " paolo.carlini at oracle dot com
  2011-12-21 19:21 ` jason at gcc dot gnu.org
@ 2011-12-21 20:22 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-12-21 20:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51611

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-12-21 19:20:30 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-21 19:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-18 20:54 [Bug c++/51611] New: [c++0x] ICE with non-static data member initializer and virtual base class reichelt at gcc dot gnu.org
2011-12-19 23:27 ` [Bug c++/51611] " paolo.carlini at oracle dot com
2011-12-21 19:21 ` jason at gcc dot gnu.org
2011-12-21 20:22 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).