public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58812] New: [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list
@ 2013-10-19 23:21 reichelt at gcc dot gnu.org
  2013-10-21  8:26 ` [Bug c++/58812] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-10-19 23:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58812
           Summary: [4.7/4.8/4.9 Regression] ICE initializing an r-value
                    reference with an initializer list
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          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") triggers an ICE
since GCC 4.7.0:

===================
int i;
int&& j{{ i }};
===================

bug.cc:2:14: internal compiler error: in build_target_expr, at cp/tree.c:316
 int&& j{{ i }};
              ^
0x6e488f build_target_expr
        ../../gcc/gcc/cp/tree.c:310
0x54f981 convert_like_real
        ../../gcc/gcc/cp/call.c:6205
0x5552e6 initialize_reference(tree_node*, tree_node*, int, int)
        ../../gcc/gcc/cp/call.c:9306
0x56207e grok_reference_init
        ../../gcc/gcc/cp/decl.c:4769
0x56207e check_initializer
        ../../gcc/gcc/cp/decl.c:5637
0x574b6c cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        ../../gcc/gcc/cp/decl.c:6356
0x662737 cp_parser_init_declarator
        ../../gcc/gcc/cp/parser.c:16640
0x663e7f cp_parser_simple_declaration
        ../../gcc/gcc/cp/parser.c:11054
0x6477e0 cp_parser_block_declaration
        ../../gcc/gcc/cp/parser.c:10935
0x66e9fe cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:10832
0x66d71a cp_parser_declaration_seq_opt
        ../../gcc/gcc/cp/parser.c:10718
0x66f036 cp_parser_translation_unit
        ../../gcc/gcc/cp/parser.c:3990
0x66f036 c_parse_file()
        ../../gcc/gcc/cp/parser.c:30970
0x78be93 c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1046
Please submit a full bug report, [etc.]


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

* [Bug c++/58812] [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list
  2013-10-19 23:21 [Bug c++/58812] New: [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list reichelt at gcc dot gnu.org
@ 2013-10-21  8:26 ` rguenth at gcc dot gnu.org
  2013-11-19 10:22 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-10-21  8:26 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.4


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

* [Bug c++/58812] [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list
  2013-10-19 23:21 [Bug c++/58812] New: [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list reichelt at gcc dot gnu.org
  2013-10-21  8:26 ` [Bug c++/58812] " rguenth at gcc dot gnu.org
@ 2013-11-19 10:22 ` rguenth at gcc dot gnu.org
  2014-01-27 15:43 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-19 10:22 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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

* [Bug c++/58812] [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list
  2013-10-19 23:21 [Bug c++/58812] New: [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list reichelt at gcc dot gnu.org
  2013-10-21  8:26 ` [Bug c++/58812] " rguenth at gcc dot gnu.org
  2013-11-19 10:22 ` rguenth at gcc dot gnu.org
@ 2014-01-27 15:43 ` jason at gcc dot gnu.org
  2014-01-28  4:31 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-01-27 15:43 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2014-01-27
                 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] 7+ messages in thread

* [Bug c++/58812] [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list
  2013-10-19 23:21 [Bug c++/58812] New: [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list reichelt at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-01-27 15:43 ` jason at gcc dot gnu.org
@ 2014-01-28  4:31 ` jason at gcc dot gnu.org
  2014-01-28 13:45 ` jason at gcc dot gnu.org
  2014-01-28 13:54 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-01-28  4:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jan 28 04:31:01 2014
New Revision: 207165

URL: http://gcc.gnu.org/viewcvs?rev=207165&root=gcc&view=rev
Log:
    PR c++/58812
    * call.c (convert_like_real): Give helpful error about excess braces
    for ck_rvalue of scalar type.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/initlist76.C
    trunk/gcc/testsuite/g++.dg/cpp0x/initlist77.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c


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

* [Bug c++/58812] [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list
  2013-10-19 23:21 [Bug c++/58812] New: [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list reichelt at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-01-28  4:31 ` jason at gcc dot gnu.org
@ 2014-01-28 13:45 ` jason at gcc dot gnu.org
  2014-01-28 13:54 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-01-28 13:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jan 28 13:44:46 2014
New Revision: 207187

URL: http://gcc.gnu.org/viewcvs?rev=207187&root=gcc&view=rev
Log:
    PR c++/58812
    * call.c (convert_like_real): Give helpful error about excess braces
    for reference binding, too.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/cpp0x/initlist76.C
Modified:
    branches/gcc-4_8-branch/gcc/cp/ChangeLog
    branches/gcc-4_8-branch/gcc/cp/call.c


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

* [Bug c++/58812] [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list
  2013-10-19 23:21 [Bug c++/58812] New: [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list reichelt at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2014-01-28 13:45 ` jason at gcc dot gnu.org
@ 2014-01-28 13:54 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-01-28 13:54 UTC (permalink / raw)
  To: gcc-bugs

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

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 #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.8.3/4.9.  Not fixing in 4.7.


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

end of thread, other threads:[~2014-01-28 13:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-19 23:21 [Bug c++/58812] New: [4.7/4.8/4.9 Regression] ICE initializing an r-value reference with an initializer list reichelt at gcc dot gnu.org
2013-10-21  8:26 ` [Bug c++/58812] " rguenth at gcc dot gnu.org
2013-11-19 10:22 ` rguenth at gcc dot gnu.org
2014-01-27 15:43 ` jason at gcc dot gnu.org
2014-01-28  4:31 ` jason at gcc dot gnu.org
2014-01-28 13:45 ` jason at gcc dot gnu.org
2014-01-28 13:54 ` 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).