public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51474] New: [c++0x] ICE with pure virtual function in initialization of non-static data member
@ 2011-12-08 22:29 reichelt at gcc dot gnu.org
  2011-12-15 23:38 ` [Bug c++/51474] " paolo.carlini at oracle dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-12-08 22:29 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51474
           Summary: [c++0x] ICE with pure virtual function in
                    initialization of non-static data member
    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
{
  virtual int foo() = 0;
  int i = foo();
};
============================

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


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

* [Bug c++/51474] [c++0x] ICE with pure virtual function in initialization of non-static data member
  2011-12-08 22:29 [Bug c++/51474] New: [c++0x] ICE with pure virtual function in initialization of non-static data member reichelt at gcc dot gnu.org
@ 2011-12-15 23:38 ` paolo.carlini at oracle dot com
  2014-03-18 18:48 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-15 23:38 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-12-15
                 CC|                            |jason at gcc dot gnu.org
     Ever Confirmed|0                           |1


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

* [Bug c++/51474] [c++0x] ICE with pure virtual function in initialization of non-static data member
  2011-12-08 22:29 [Bug c++/51474] New: [c++0x] ICE with pure virtual function in initialization of non-static data member reichelt at gcc dot gnu.org
  2011-12-15 23:38 ` [Bug c++/51474] " paolo.carlini at oracle dot com
@ 2014-03-18 18:48 ` paolo.carlini at oracle dot com
  2014-03-19 18:22 ` paolo at gcc dot gnu.org
  2014-03-19 18:23 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-03-18 18:48 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |paolo.carlini at oracle dot com

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Mine.


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

* [Bug c++/51474] [c++0x] ICE with pure virtual function in initialization of non-static data member
  2011-12-08 22:29 [Bug c++/51474] New: [c++0x] ICE with pure virtual function in initialization of non-static data member reichelt at gcc dot gnu.org
  2011-12-15 23:38 ` [Bug c++/51474] " paolo.carlini at oracle dot com
  2014-03-18 18:48 ` paolo.carlini at oracle dot com
@ 2014-03-19 18:22 ` paolo at gcc dot gnu.org
  2014-03-19 18:23 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu.org @ 2014-03-19 18:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Mar 19 18:21:52 2014
New Revision: 208686

URL: http://gcc.gnu.org/viewcvs?rev=208686&root=gcc&view=rev
Log:
/cp
2014-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51474
    * call.c (build_new_method_call_1): Handle pure virtuals called by
    NSDMIs too.

/testsuite
2014-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51474
    * g++.dg/cpp0x/nsdmi-virtual2.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/nsdmi-virtual2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/51474] [c++0x] ICE with pure virtual function in initialization of non-static data member
  2011-12-08 22:29 [Bug c++/51474] New: [c++0x] ICE with pure virtual function in initialization of non-static data member reichelt at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-03-19 18:22 ` paolo at gcc dot gnu.org
@ 2014-03-19 18:23 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-03-19 18:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
           Assignee|paolo.carlini at oracle dot com    |unassigned at gcc dot gnu.org
   Target Milestone|---                         |4.9.0

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed for 4.9.0.


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

end of thread, other threads:[~2014-03-19 18:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-08 22:29 [Bug c++/51474] New: [c++0x] ICE with pure virtual function in initialization of non-static data member reichelt at gcc dot gnu.org
2011-12-15 23:38 ` [Bug c++/51474] " paolo.carlini at oracle dot com
2014-03-18 18:48 ` paolo.carlini at oracle dot com
2014-03-19 18:22 ` paolo at gcc dot gnu.org
2014-03-19 18:23 ` paolo.carlini at oracle dot com

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).