public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60628] New: [4.7/4.8/4.9 Regression] [c++11] ICE initializing array of auto
@ 2014-03-23 20:21 reichelt at gcc dot gnu.org
2014-03-23 20:21 ` [Bug c++/60628] " reichelt at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-03-23 20:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60628
Bug ID: 60628
Summary: [4.7/4.8/4.9 Regression] [c++11] ICE initializing
array of auto
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: reichelt at gcc dot gnu.org
The following (invalid?) code snippet (compiled with "-std=c++11" or
"-std=c++0x" for older compilers) triggers an ICE since GCC 4.6.0:
=================================
#include <initializer_list>
void foo(int i)
{
auto x[i] = { 0 };
}
=================================
bug.cc: In function 'void foo(int)':
bug.cc:5:19: internal compiler error: in tsubst_copy, at cp/pt.c:13032
auto x[i] = { 0 };
^
0x62bba3 tsubst_copy
../../gcc/gcc/cp/pt.c:13032
0x60a6a6 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
../../gcc/gcc/cp/pt.c:15287
0x614496 tsubst_expr
../../gcc/gcc/cp/pt.c:13980
0x61dc56 tsubst(tree_node*, tree_node*, int, tree_node*)
../../gcc/gcc/cp/pt.c:11597
0x61cf47 tsubst(tree_node*, tree_node*, int, tree_node*)
../../gcc/gcc/cp/pt.c:12046
0x648e17 listify_autos
../../gcc/gcc/cp/pt.c:21612
0x648e17 do_auto_deduction(tree_node*, tree_node*, tree_node*)
../../gcc/gcc/cp/pt.c:21636
0x5db251 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
../../gcc/gcc/cp/decl.c:6198
0x6cd22d cp_parser_init_declarator
../../gcc/gcc/cp/parser.c:16858
0x6ce9e9 cp_parser_simple_declaration
../../gcc/gcc/cp/parser.c:11225
0x6b2983 cp_parser_block_declaration
../../gcc/gcc/cp/parser.c:11106
0x6b3aa1 cp_parser_declaration_statement
../../gcc/gcc/cp/parser.c:10753
0x6b40eb cp_parser_statement
../../gcc/gcc/cp/parser.c:9486
0x6b4f39 cp_parser_statement_seq_opt
../../gcc/gcc/cp/parser.c:9764
0x6b50a6 cp_parser_compound_statement
../../gcc/gcc/cp/parser.c:9718
0x6c62db cp_parser_function_body
../../gcc/gcc/cp/parser.c:18736
0x6c62db cp_parser_ctor_initializer_opt_and_function_body
../../gcc/gcc/cp/parser.c:18772
0x6cc8b2 cp_parser_function_definition_after_declarator
../../gcc/gcc/cp/parser.c:22897
0x6cd75f cp_parser_function_definition_from_specifiers_and_declarator
../../gcc/gcc/cp/parser.c:22809
0x6cd75f cp_parser_init_declarator
../../gcc/gcc/cp/parser.c:16628
Please submit a full bug report, [etc.]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/60628] [4.7/4.8/4.9 Regression] [c++11] ICE initializing array of auto
2014-03-23 20:21 [Bug c++/60628] New: [4.7/4.8/4.9 Regression] [c++11] ICE initializing array of auto reichelt at gcc dot gnu.org
@ 2014-03-23 20:21 ` reichelt at gcc dot gnu.org
2014-03-24 18:57 ` jason at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-03-23 20:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60628
Volker Reichelt <reichelt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.4.0, 4.5.0
Target Milestone|--- |4.7.4
Known to fail| |4.6.0, 4.7.0, 4.8.0, 4.9.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/60628] [4.7/4.8/4.9 Regression] [c++11] ICE initializing array of auto
2014-03-23 20:21 [Bug c++/60628] New: [4.7/4.8/4.9 Regression] [c++11] ICE initializing array of auto reichelt at gcc dot gnu.org
2014-03-23 20:21 ` [Bug c++/60628] " reichelt at gcc dot gnu.org
@ 2014-03-24 18:57 ` jason at gcc dot gnu.org
2014-03-25 18:01 ` jason at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2014-03-24 18:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60628
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2014-03-24
CC| |jason at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/60628] [4.7/4.8/4.9 Regression] [c++11] ICE initializing array of auto
2014-03-23 20:21 [Bug c++/60628] New: [4.7/4.8/4.9 Regression] [c++11] ICE initializing array of auto reichelt at gcc dot gnu.org
2014-03-23 20:21 ` [Bug c++/60628] " reichelt at gcc dot gnu.org
2014-03-24 18:57 ` jason at gcc dot gnu.org
@ 2014-03-25 18:01 ` jason at gcc dot gnu.org
2014-03-25 19:42 ` [Bug c++/60628] [4.7/4.8 " jason at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2014-03-25 18:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60628
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Mar 25 18:00:30 2014
New Revision: 208816
URL: http://gcc.gnu.org/viewcvs?rev=208816&root=gcc&view=rev
Log:
PR c++/60628
* decl.c (create_array_type_for_decl): Complain about array of auto.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/auto42.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/60628] [4.7/4.8 Regression] [c++11] ICE initializing array of auto
2014-03-23 20:21 [Bug c++/60628] New: [4.7/4.8/4.9 Regression] [c++11] ICE initializing array of auto reichelt at gcc dot gnu.org
` (2 preceding siblings ...)
2014-03-25 18:01 ` jason at gcc dot gnu.org
@ 2014-03-25 19:42 ` jason at gcc dot gnu.org
2014-05-13 16:05 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2014-03-25 19:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60628
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.9.0
Summary|[4.7/4.8/4.9 Regression] |[4.7/4.8 Regression]
|[c++11] ICE initializing |[c++11] ICE initializing
|array of auto |array of auto
Known to fail|4.9.0 |
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.9 so far.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/60628] [4.7/4.8 Regression] [c++11] ICE initializing array of auto
2014-03-23 20:21 [Bug c++/60628] New: [4.7/4.8/4.9 Regression] [c++11] ICE initializing array of auto reichelt at gcc dot gnu.org
` (3 preceding siblings ...)
2014-03-25 19:42 ` [Bug c++/60628] [4.7/4.8 " jason at gcc dot gnu.org
@ 2014-05-13 16:05 ` jason at gcc dot gnu.org
2014-05-13 16:08 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2014-05-13 16:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60628
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue May 13 16:05:07 2014
New Revision: 210382
URL: http://gcc.gnu.org/viewcvs?rev=210382&root=gcc&view=rev
Log:
PR c++/60628
* decl.c (create_array_type_for_decl): Complain about array of auto.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/cpp0x/auto42.C
Modified:
branches/gcc-4_8-branch/gcc/cp/ChangeLog
branches/gcc-4_8-branch/gcc/cp/decl.c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/60628] [4.7/4.8 Regression] [c++11] ICE initializing array of auto
2014-03-23 20:21 [Bug c++/60628] New: [4.7/4.8/4.9 Regression] [c++11] ICE initializing array of auto reichelt at gcc dot gnu.org
` (4 preceding siblings ...)
2014-05-13 16:05 ` jason at gcc dot gnu.org
@ 2014-05-13 16:08 ` jason at gcc dot gnu.org
2014-07-13 10:28 ` paolo.carlini at oracle dot com
2014-07-14 5:26 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2014-05-13 16:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60628
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|4.7.4 |4.8.3
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.8.3.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/60628] [4.7/4.8 Regression] [c++11] ICE initializing array of auto
2014-03-23 20:21 [Bug c++/60628] New: [4.7/4.8/4.9 Regression] [c++11] ICE initializing array of auto reichelt at gcc dot gnu.org
` (5 preceding siblings ...)
2014-05-13 16:08 ` jason at gcc dot gnu.org
@ 2014-07-13 10:28 ` paolo.carlini at oracle dot com
2014-07-14 5:26 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-07-13 10:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60628
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 60629 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/60628] [4.7/4.8 Regression] [c++11] ICE initializing array of auto
2014-03-23 20:21 [Bug c++/60628] New: [4.7/4.8/4.9 Regression] [c++11] ICE initializing array of auto reichelt at gcc dot gnu.org
` (6 preceding siblings ...)
2014-07-13 10:28 ` paolo.carlini at oracle dot com
@ 2014-07-14 5:26 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2014-07-14 5:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60628
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Jul 14 05:25:19 2014
New Revision: 212504
URL: https://gcc.gnu.org/viewcvs?rev=212504&root=gcc&view=rev
Log:
PR c++/60628
* decl.c (create_array_type_for_decl): Only check for auto once.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-07-14 5:26 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-23 20:21 [Bug c++/60628] New: [4.7/4.8/4.9 Regression] [c++11] ICE initializing array of auto reichelt at gcc dot gnu.org
2014-03-23 20:21 ` [Bug c++/60628] " reichelt at gcc dot gnu.org
2014-03-24 18:57 ` jason at gcc dot gnu.org
2014-03-25 18:01 ` jason at gcc dot gnu.org
2014-03-25 19:42 ` [Bug c++/60628] [4.7/4.8 " jason at gcc dot gnu.org
2014-05-13 16:05 ` jason at gcc dot gnu.org
2014-05-13 16:08 ` jason at gcc dot gnu.org
2014-07-13 10:28 ` paolo.carlini at oracle dot com
2014-07-14 5:26 ` jason 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).