public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56768] New: [4.7] ICE in make_decl_rtl, at varasm.c:1147
@ 2013-03-28 18:42 ppluzhnikov at google dot com
  2013-04-02  8:57 ` [Bug c++/56768] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ppluzhnikov at google dot com @ 2013-03-28 18:42 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56768
           Summary: [4.7] ICE in make_decl_rtl, at varasm.c:1147
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ppluzhnikov@google.com


Google ref b/8485258

Does *not* reproduce on trunk
Does reproduce using gcc-4_7 (r197167)

Test case:

struct Iter
{
  int& operator* ();
  void operator++ ();
};

bool operator!= (Iter &, Iter &);

struct Container
{
  Iter begin () const;
  Iter end () const;
};

struct J
{
    virtual J *mutable_child ();
};

struct M
{
    M (const Container &);
    J ns_;
};
namespace
{
  J MakeNamespace (const Container &src)
  {
    J a;
    J *b = 0;
    for (const int &c: src)
      b = b ? b->mutable_child () : &a;
    return a;
  }
}
M::M (const Container &ns):ns_ (MakeNamespace (ns))
{
}

cc1plus pp.ii -std=c++11 -quiet && echo ok
ok

cc1plus pp.ii -std=c++11 -quiet -O2
pp.ii: In constructor ‘M::M(const Container&)’:
pp.ii:36:1: internal compiler error: in make_decl_rtl, at varasm.c:1147
Please submit a full bug report,
>From gcc-bugs-return-418682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 28 18:43:37 2013
Return-Path: <gcc-bugs-return-418682-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15278 invoked by alias); 28 Mar 2013 18:43:36 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15260 invoked by uid 48); 28 Mar 2013 18:43:31 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/56765] [OOP] compilation errors/ICE with unlimited polymorphic array
Date: Thu, 28 Mar 2013 18:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: Status Keywords Last reconfirmed CC Ever Confirmed Summary
Message-ID: <bug-56765-4-YqXtp2phYv@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56765-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56765-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-03/txt/msg02123.txt.bz2
Content-length: 851


http://gcc.gnu.org/bugzilla/show_bug.cgi?idV765

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |rejects-valid
   Last reconfirmed|                            |2013-03-28
                 CC|                            |janus at gcc dot gnu.org
     Ever Confirmed|0                           |1
            Summary|compilation errors/ICE with |[OOP] compilation
                   |unlimited polymorphic array |errors/ICE with unlimited
                   |                            |polymorphic array

--- Comment #1 from janus at gcc dot gnu.org 2013-03-28 18:43:31 UTC ---
Confirmed with current trunk.


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

* [Bug c++/56768] [4.7] ICE in make_decl_rtl, at varasm.c:1147
  2013-03-28 18:42 [Bug c++/56768] New: [4.7] ICE in make_decl_rtl, at varasm.c:1147 ppluzhnikov at google dot com
@ 2013-04-02  8:57 ` rguenth at gcc dot gnu.org
  2013-04-02  8:58 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-04-02  8:57 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-04-02
      Known to work|                            |4.8.0
            Version|unknown                     |4.7.3
     Ever Confirmed|0                           |1
      Known to fail|                            |4.7.2

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-02 08:57:27 UTC ---
Confirmed.  4.6 does not accept the testcase.

../../gcc47-g/gcc/cc1plus  -quiet t.ii -std=c++0x -O2
t.ii: In constructor 'M::M(const Container&)':
t.ii:36:1: error: PHI argument is not SSA_NAME, or invariant
PHI argument
retvalptr.4
for PHI node
b_10 = PHI <retvalptr.4(3), b_8(4)>
t.ii:36:1: internal compiler error: verify_ssa failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

this is inline transform going wrong.

Bisecting what fixed this would be nice.


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

* [Bug c++/56768] [4.7] ICE in make_decl_rtl, at varasm.c:1147
  2013-03-28 18:42 [Bug c++/56768] New: [4.7] ICE in make_decl_rtl, at varasm.c:1147 ppluzhnikov at google dot com
  2013-04-02  8:57 ` [Bug c++/56768] " rguenth at gcc dot gnu.org
@ 2013-04-02  8:58 ` rguenth at gcc dot gnu.org
  2013-04-02 10:11 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-04-02  8:58 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-02 08:58:24 UTC ---
*** Bug 56769 has been marked as a duplicate of this bug. ***


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

* [Bug c++/56768] [4.7] ICE in make_decl_rtl, at varasm.c:1147
  2013-03-28 18:42 [Bug c++/56768] New: [4.7] ICE in make_decl_rtl, at varasm.c:1147 ppluzhnikov at google dot com
  2013-04-02  8:57 ` [Bug c++/56768] " rguenth at gcc dot gnu.org
  2013-04-02  8:58 ` rguenth at gcc dot gnu.org
@ 2013-04-02 10:11 ` jakub at gcc dot gnu.org
  2013-04-02 10:40 ` rguenth at gcc dot gnu.org
  2013-04-02 12:26 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-04-02 10:11 UTC (permalink / raw)
  To: gcc-bugs


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-02 10:11:25 UTC ---
http://gcc.gnu.org/r187593 fixed this on the trunk.


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

* [Bug c++/56768] [4.7] ICE in make_decl_rtl, at varasm.c:1147
  2013-03-28 18:42 [Bug c++/56768] New: [4.7] ICE in make_decl_rtl, at varasm.c:1147 ppluzhnikov at google dot com
                   ` (2 preceding siblings ...)
  2013-04-02 10:11 ` jakub at gcc dot gnu.org
@ 2013-04-02 10:40 ` rguenth at gcc dot gnu.org
  2013-04-02 12:26 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-04-02 10:40 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-02 10:40:26 UTC ---
I have a patch to backport.


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

* [Bug c++/56768] [4.7] ICE in make_decl_rtl, at varasm.c:1147
  2013-03-28 18:42 [Bug c++/56768] New: [4.7] ICE in make_decl_rtl, at varasm.c:1147 ppluzhnikov at google dot com
                   ` (3 preceding siblings ...)
  2013-04-02 10:40 ` rguenth at gcc dot gnu.org
@ 2013-04-02 12:26 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-04-02 12:26 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to work|                            |4.7.3
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.3

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-02 12:25:59 UTC ---
Author: rguenth
Date: Tue Apr  2 12:23:13 2013
New Revision: 197349

URL: http://gcc.gnu.org/viewcvs?rev=197349&root=gcc&view=rev
Log:
2013-04-02  Richard Biener  <rguenther@suse.de>

    PR middle-end/56768
    * g++.dg/torture/pr56768.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/torture/pr56768.C
Modified:
    trunk/gcc/testsuite/ChangeLog

Author: rguenth
Date: Tue Apr  2 12:24:04 2013
New Revision: 197350

URL: http://gcc.gnu.org/viewcvs?rev=197350&root=gcc&view=rev
Log:
2013-04-02  Richard Biener  <rguenther@suse.de>

    PR middle-end/56768
    * g++.dg/torture/pr56768.C: New testcase.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/torture/pr56768.C
Modified:
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog

Author: rguenth
Date: Tue Apr  2 12:25:00 2013
New Revision: 197351

URL: http://gcc.gnu.org/viewcvs?rev=197351&root=gcc&view=rev
Log:
2013-04-02  Richard Biener  <rguenther@suse.de>

    PR middle-end/56768
    Backport from mainline
    2012-05-16  Richard Guenther  <rguenther@suse.de>

    * tree-inline.c (declare_return_variable): Properly handle
    DECL_BY_REFERENCE return vars in SSA form.

    * g++.dg/torture/pr56768.C: New testcase.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/torture/pr56768.C
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_7-branch/gcc/tree-inline.c


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

end of thread, other threads:[~2013-04-02 12:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-28 18:42 [Bug c++/56768] New: [4.7] ICE in make_decl_rtl, at varasm.c:1147 ppluzhnikov at google dot com
2013-04-02  8:57 ` [Bug c++/56768] " rguenth at gcc dot gnu.org
2013-04-02  8:58 ` rguenth at gcc dot gnu.org
2013-04-02 10:11 ` jakub at gcc dot gnu.org
2013-04-02 10:40 ` rguenth at gcc dot gnu.org
2013-04-02 12:26 ` rguenth 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).