public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59832] New: [c++11][4.8, 4.9] ICE in reshape_init_class with initializer list
@ 2014-01-15 17:14 ppluzhnikov at google dot com
2014-01-17 10:02 ` [Bug c++/59832] [c++11] " paolo.carlini at oracle dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: ppluzhnikov at google dot com @ 2014-01-15 17:14 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59832] [c++11] ICE in reshape_init_class with initializer list
2014-01-15 17:14 [Bug c++/59832] New: [c++11][4.8, 4.9] ICE in reshape_init_class with initializer list ppluzhnikov at google dot com
@ 2014-01-17 10:02 ` paolo.carlini at oracle dot com
2014-02-05 14:03 ` sam at wavestore dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-01-17 10:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59832
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-01-17
Version|unknown |4.9.0
Summary|[c++11][4.8, 4.9] ICE in |[c++11] ICE in
|reshape_init_class with |reshape_init_class with
|initializer list |initializer list
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59832] [c++11] ICE in reshape_init_class with initializer list
2014-01-15 17:14 [Bug c++/59832] New: [c++11][4.8, 4.9] ICE in reshape_init_class with initializer list ppluzhnikov at google dot com
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
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: sam at wavestore dot com @ 2014-02-05 14:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59832
Sam Kellett <sam at wavestore dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at wavestore dot com
--- Comment #1 from Sam Kellett <sam at wavestore dot com> ---
Created attachment 32048
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32048&action=edit
Preprocessed source
I think this is another example of the same bug:
#include <vector>
struct Message
{
typedef union {
char byte;
const char *str;
} Parameter;
Parameter p1;
Parameter p2;
};
int main()
{
std::vector<Message> messages_;
messages_.push_back({{ .byte = 'a' }});
Message message = {{ .byte = 'a' }, { .str = "Hello World" }};
messages_.push_back(message);
messages_.push_back({{ .byte = 'a' }, { .str = "Hello World" }});
}
Outputs:
union.cpp: In function ‘int main()’:
union.cpp:23:66: internal compiler error: in reshape_init_class, at
cp/decl.c:5216
messages_.push_back({{ .byte = 'a' }, { .str = "Hello World" }});
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccbxyQRY.out file, please attach this to
your bugreport.
>From gcc-bugs-return-442656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 05 14:05:57 2014
Return-Path: <gcc-bugs-return-442656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24322 invoked by alias); 5 Feb 2014 14:05:56 -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 24292 invoked by uid 48); 5 Feb 2014 14:05:53 -0000
From: "sam at wavestore dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59832] [c++11] ICE in reshape_init_class with initializer list
Date: Wed, 05 Feb 2014 14:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sam at wavestore dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-59832-4-fV9wMP1v3g@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59832-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59832-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-02/txt/msg00413.txt.bz2
Content-length: 148
http://gcc.gnu.org/bugzilla/show_bug.cgi?idY832
--- Comment #2 from Sam Kellett <sam at wavestore dot com> ---
Using gcc v4.8.2 I should add...
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59832] [c++11] ICE in reshape_init_class with initializer list
2014-01-15 17:14 [Bug c++/59832] New: [c++11][4.8, 4.9] ICE in reshape_init_class with initializer list ppluzhnikov at google dot com
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
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ppluzhnikov at google dot com @ 2014-05-04 14:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59832
--- Comment #3 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
Still reproduces on current trunk at r210049
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59832] [c++11] ICE in reshape_init_class with initializer list
2014-01-15 17:14 [Bug c++/59832] New: [c++11][4.8, 4.9] ICE in reshape_init_class with initializer list ppluzhnikov at google dot com
` (2 preceding siblings ...)
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
5 siblings, 0 replies; 7+ messages in thread
From: ppluzhnikov at google dot com @ 2014-06-08 17:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59832
--- Comment #4 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
Still reproduces on current trunk @r211286
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59832] [c++11] ICE in reshape_init_class with initializer list
2014-01-15 17:14 [Bug c++/59832] New: [c++11][4.8, 4.9] ICE in reshape_init_class with initializer list ppluzhnikov at google dot com
` (3 preceding siblings ...)
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
5 siblings, 0 replies; 7+ messages in thread
From: ppluzhnikov at google dot com @ 2014-06-27 1:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59832
--- Comment #5 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
Still broken on trunk @r211990.
Any chance someone can look at this?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59832] [c++11] ICE in reshape_init_class with initializer list
2014-01-15 17:14 [Bug c++/59832] New: [c++11][4.8, 4.9] ICE in reshape_init_class with initializer list ppluzhnikov at google dot com
` (4 preceding siblings ...)
2014-06-27 1:53 ` ppluzhnikov at google dot com
@ 2015-03-07 19:51 ` ppluzhnikov at google dot com
5 siblings, 0 replies; 7+ messages in thread
From: ppluzhnikov at google dot com @ 2015-03-07 19:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59832
--- Comment #7 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
Still broken on trunk @r221169.
Leaving known ICEs for >= 1 year untouched seems... suboptimal.
(Sorry I don't know enough GCC internals to take this on.)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-03-07 19:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-15 17:14 [Bug c++/59832] New: [c++11][4.8, 4.9] ICE in reshape_init_class with initializer list ppluzhnikov at google dot com
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
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).