public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ppluzhnikov at google dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56768] New: [4.7] ICE in make_decl_rtl, at varasm.c:1147
Date: Thu, 28 Mar 2013 18:42:00 -0000 [thread overview]
Message-ID: <bug-56768-4@http.gcc.gnu.org/bugzilla/> (raw)
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.
next reply other threads:[~2013-03-28 18:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-28 18:42 ppluzhnikov at google dot com [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-56768-4@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).