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++/59832] New: [c++11][4.8, 4.9] ICE in reshape_init_class with initializer list
Date: Wed, 15 Jan 2014 17:14:00 -0000 [thread overview]
Message-ID: <bug-59832-4@http.gcc.gnu.org/bugzilla/> (raw)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59832
Bug ID: 59832
Summary: [c++11][4.8, 4.9] ICE in reshape_init_class with
initializer list
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ppluzhnikov at google dot com
Google ref b/12545403
/// -- cut ---
struct A
{
struct B
{
int aa;
int bb;
};
B cc;
};
void Fn1 (const A &);
void
Fn2 ()
{
Fn1 ( { { bb: 0 } });
}
/// -- cut ---
Using trunk:
g++ (GCC) 4.9.0 20140110 (experimental)
g++ -c -g -std=c++11 t.ii
t.ii: In function ‘void Fn2()’:
t.ii:16:22: internal compiler error: in reshape_init_class, at cp/decl.c:5267
Fn1 ( { { bb: 0 } });
^
0x56de5d reshape_init_class
../../gcc/cp/decl.c:5267
0x56de5d reshape_init_r
../../gcc/cp/decl.c:5493
0x56d026 reshape_init(tree_node*, tree_node*, int)
../../gcc/cp/decl.c:5537
0x55364f build_aggr_conv
../../gcc/cp/call.c:885
0x55364f implicit_conversion
../../gcc/cp/call.c:1757
0x5587d6 can_convert_arg(tree_node*, tree_node*, tree_node*, int, int)
../../gcc/cp/call.c:8948
0x5536e5 build_aggr_conv
../../gcc/cp/call.c:910
0x5536e5 implicit_conversion
../../gcc/cp/call.c:1757
0x554041 reference_binding
../../gcc/cp/call.c:1464
0x552e5c implicit_conversion
../../gcc/cp/call.c:1698
0x555112 add_function_candidate
../../gcc/cp/call.c:2002
0x551836 add_candidates
../../gcc/cp/call.c:5094
0x558b82 perform_overload_resolution
../../gcc/cp/call.c:3819
0x55f68a build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, bool, int)
../../gcc/cp/call.c:3896
0x6d9711 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
../../gcc/cp/semantics.c:2281
0x65c73e cp_parser_postfix_expression
../../gcc/cp/parser.c:6171
0x65f418 cp_parser_unary_expression
../../gcc/cp/parser.c:7177
0x6600af cp_parser_binary_expression
../../gcc/cp/parser.c:7881
0x6605a1 cp_parser_assignment_expression
../../gcc/cp/parser.c:8119
0x662534 cp_parser_expression
../../gcc/cp/parser.c:8281
Please submit a full bug report,
Without -std=c++11, same crash after warning:
g++ -c -g t.ii
t.ii: In function ‘void Fn2()’:
t.ii:16:7: warning: extended initializer lists only available with -std=c++11
or -std=gnu++11 [enabled by default]
Fn1 ( { { bb: 0 } });
^
t.ii:16:22: warning: extended initializer lists only available with -std=c++11
or -std=gnu++11 [enabled by default]
Fn1 ( { { bb: 0 } });
^
t.ii:16:22: internal compiler error: in reshape_init_class, at cp/decl.c:5267
0x56de5d reshape_init_class
../../gcc/cp/decl.c:5267
...
>From gcc-bugs-return-440467-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jan 15 17:33:22 2014
Return-Path: <gcc-bugs-return-440467-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1467 invoked by alias); 15 Jan 2014 17:33:22 -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 1434 invoked by uid 55); 15 Jan 2014 17:33:19 -0000
From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/59511] [4.9 Regression] FAIL: gcc.target/i386/pr36222-1.c scan-assembler-not movdqa with -mtune=corei7
Date: Wed, 15 Jan 2014 17:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ra
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vmakarov at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-59511-4-KzPXodeqYL@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59511-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59511-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-01/txt/msg01609.txt.bz2
Content-length: 813
http://gcc.gnu.org/bugzilla/show_bug.cgi?idY511
--- Comment #4 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Author: vmakarov
Date: Wed Jan 15 17:32:47 2014
New Revision: 206636
URL: http://gcc.gnu.org/viewcvs?rev 6636&root=gcc&view=rev
Log:
2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/59511
* ira.c (ira_init_register_move_cost): Use memory costs for some
cases of register move cost calculations.
* lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
instead of BB frequency.
* lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
* lra-assigns.c (find_hard_regno_for): Ditto.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ira.c
trunk/gcc/lra-assigns.c
trunk/gcc/lra-coalesce.c
trunk/gcc/lra-constraints.c
next reply other threads:[~2014-01-15 17:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-15 17:14 ppluzhnikov at google dot com [this message]
2014-01-17 10:02 ` [Bug c++/59832] [c++11] " paolo.carlini at oracle dot com
2014-02-05 14:03 ` sam at wavestore dot com
2014-05-04 14:58 ` ppluzhnikov at google dot com
2014-06-08 17:48 ` ppluzhnikov at google dot com
2014-06-27 1:53 ` ppluzhnikov at google dot com
2015-03-07 19:51 ` ppluzhnikov at google dot com
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-59832-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).