public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66383] New: ICE in gimplify_expr on this passed in inline initialization
@ 2015-06-02 15:46 alltaken380 at gmail dot com
  2015-06-02 15:49 ` [Bug c++/66383] " alltaken380 at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: alltaken380 at gmail dot com @ 2015-06-02 15:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66383

            Bug ID: 66383
           Summary: ICE in gimplify_expr on this passed in inline
                    initialization
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alltaken380 at gmail dot com
  Target Milestone: ---

Created attachment 35679
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35679&action=edit
C++ source code (stripped down, just few lines of simple code)

$ g++ -std=c++14 ./test.cpp 
./test.cpp: In function 'auto foo()':
./test.cpp:22:24: internal compiler error: in gimplify_expr, at gimplify.c:8785
             auto b = B{};
                        ^
0x92987c gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../src/gcc/gimplify.c:8785
0x928038 gimplify_addr_expr
        ../../src/gcc/gimplify.c:4978
0x928038 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../src/gcc/gimplify.c:8099
0x92d3d0 gimplify_call_expr
        ../../src/gcc/gimplify.c:2476
0x929117 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../src/gcc/gimplify.c:8024
0x92a626 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../src/gcc/gimplify.c:5518
0x92772b gimplify_cleanup_point_expr
        ../../src/gcc/gimplify.c:5294
0x92772b gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../src/gcc/gimplify.c:8416
0x92a626 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../src/gcc/gimplify.c:5518
0x928b4b gimplify_statement_list
        ../../src/gcc/gimplify.c:1487
0x928b4b gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../src/gcc/gimplify.c:8468
0x92a626 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../src/gcc/gimplify.c:5518
0x92ae2d gimplify_bind_expr
        ../../src/gcc/gimplify.c:1136
0x9290f9 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../src/gcc/gimplify.c:8250
0x92a626 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../src/gcc/gimplify.c:5518
0x92b4d1 gimplify_body(tree_node*, bool)
        ../../src/gcc/gimplify.c:9187
0x92b7f7 gimplify_function_tree(tree_node*)
        ../../src/gcc/gimplify.c:9341
0x7e22a7 cgraph_node::analyze()
        ../../src/gcc/cgraphunit.c:633
0x7e475f analyze_functions
        ../../src/gcc/cgraphunit.c:1023
0x7e4c95 symbol_table::finalize_compilation_unit()
        ../../src/gcc/cgraphunit.c:2452
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c++/66383] ICE in gimplify_expr on this passed in inline initialization
  2015-06-02 15:46 [Bug c++/66383] New: ICE in gimplify_expr on this passed in inline initialization alltaken380 at gmail dot com
@ 2015-06-02 15:49 ` alltaken380 at gmail dot com
  2015-06-02 15:50 ` alltaken380 at gmail dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: alltaken380 at gmail dot com @ 2015-06-02 15:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66383

alltaken380 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #35679|0                           |1
        is obsolete|                            |

--- Comment #1 from alltaken380 at gmail dot com ---
Created attachment 35680
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35680&action=edit
Preprocessed source code


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

* [Bug c++/66383] ICE in gimplify_expr on this passed in inline initialization
  2015-06-02 15:46 [Bug c++/66383] New: ICE in gimplify_expr on this passed in inline initialization alltaken380 at gmail dot com
  2015-06-02 15:49 ` [Bug c++/66383] " alltaken380 at gmail dot com
@ 2015-06-02 15:50 ` alltaken380 at gmail dot com
  2015-06-03  7:25 ` [Bug c++/66383] [5/6 Regression] " rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: alltaken380 at gmail dot com @ 2015-06-02 15:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66383

--- Comment #2 from alltaken380 at gmail dot com ---
$ ~/.local/gcc-5.1/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/home/rafalw/.local/gcc-5.1/bin/g++
COLLECT_LTO_WRAPPER=/home/rafalw/.local/gcc-5.1/lib/gcc/x86_64-unknown-linux-gnu/5.1.1/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../src/configure --prefix=/home/rafalw/.local/gcc-5.1
--libdir=/home/rafalw/.local/gcc-5.1/lib
--libexecdir=/home/rafalw/.local/gcc-5.1/lib --enable-languages=c,c++
--enable-shared --enable-threads=posix --enable-libmpx --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch
--disable-libssp --enable-gnu-unique-object --enable-linker-build-id
--enable-lto --enable-plugin --enable-install-libiberty
--with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib
--disable-werror --with-default-libstdcxx-abi=c++98
Thread model: posix
gcc version 5.1.1 20150526 (GCC)


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

* [Bug c++/66383] [5/6 Regression] ICE in gimplify_expr on this passed in inline initialization
  2015-06-02 15:46 [Bug c++/66383] New: ICE in gimplify_expr on this passed in inline initialization alltaken380 at gmail dot com
  2015-06-02 15:49 ` [Bug c++/66383] " alltaken380 at gmail dot com
  2015-06-02 15:50 ` alltaken380 at gmail dot com
@ 2015-06-03  7:25 ` rguenth at gcc dot gnu.org
  2015-06-05 21:14 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-03  7:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66383

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-06-03
      Known to work|                            |4.9.3
   Target Milestone|---                         |5.2
            Summary|ICE in gimplify_expr on     |[5/6 Regression] ICE in
                   |this passed in inline       |gimplify_expr on this
                   |initialization              |passed in inline
                   |                            |initialization
     Ever confirmed|0                           |1

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed, 4.9 seems to work fine.

#1  0x0000000000d9f9be in gimplify_expr (expr_p=0x7ffff6a384f8, 
    pre_p=0x7fffffffd178, post_p=0x7fffffffcbc8, 
    gimple_test_f=0xd7e8aa <is_gimple_addressable(tree)>, fallback=3)
    at /space/rguenther/tramp3d/trunk/gcc/gimplify.c:8810
warning: Source file is more recent than executable.
8810                  goto dont_recalculate;
(gdb) l
8805                  }
8806
8807                case tcc_declaration:
8808                case tcc_constant:
8809                  ret = GS_ALL_DONE;
8810                  goto dont_recalculate;
8811
8812                default:
8813                  gcc_unreachable ();
8814                }
(gdb) p debug_generic_expr (*expr_p)
<PLACEHOLDER_EXPR struct B>
$1 = void


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

* [Bug c++/66383] [5/6 Regression] ICE in gimplify_expr on this passed in inline initialization
  2015-06-02 15:46 [Bug c++/66383] New: ICE in gimplify_expr on this passed in inline initialization alltaken380 at gmail dot com
                   ` (2 preceding siblings ...)
  2015-06-03  7:25 ` [Bug c++/66383] [5/6 Regression] " rguenth at gcc dot gnu.org
@ 2015-06-05 21:14 ` jason at gcc dot gnu.org
  2015-06-09 17:19 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2015-06-05 21:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66383

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jason at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org


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

* [Bug c++/66383] [5/6 Regression] ICE in gimplify_expr on this passed in inline initialization
  2015-06-02 15:46 [Bug c++/66383] New: ICE in gimplify_expr on this passed in inline initialization alltaken380 at gmail dot com
                   ` (3 preceding siblings ...)
  2015-06-05 21:14 ` jason at gcc dot gnu.org
@ 2015-06-09 17:19 ` jason at gcc dot gnu.org
  2015-06-17 12:43 ` jakub at gcc dot gnu.org
  2015-06-17 19:44 ` jason at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2015-06-09 17:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66383

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jun  9 17:19:12 2015
New Revision: 224291

URL: https://gcc.gnu.org/viewcvs?rev=224291&root=gcc&view=rev
Log:
        PR c++/66383
        * tree.c (replace_placeholders_r): Handle placeholders for an
        outer object.
        * typeck2.c (store_init_value): Only replace_placeholders for
        objects of class type.

Added:
    branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr3.C
Modified:
    branches/gcc-5-branch/gcc/cp/ChangeLog
    branches/gcc-5-branch/gcc/cp/tree.c
    branches/gcc-5-branch/gcc/cp/typeck2.c


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

* [Bug c++/66383] [5/6 Regression] ICE in gimplify_expr on this passed in inline initialization
  2015-06-02 15:46 [Bug c++/66383] New: ICE in gimplify_expr on this passed in inline initialization alltaken380 at gmail dot com
                   ` (4 preceding siblings ...)
  2015-06-09 17:19 ` jason at gcc dot gnu.org
@ 2015-06-17 12:43 ` jakub at gcc dot gnu.org
  2015-06-17 19:44 ` jason at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-17 12:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66383

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This regressed PR66536.


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

* [Bug c++/66383] [5/6 Regression] ICE in gimplify_expr on this passed in inline initialization
  2015-06-02 15:46 [Bug c++/66383] New: ICE in gimplify_expr on this passed in inline initialization alltaken380 at gmail dot com
                   ` (5 preceding siblings ...)
  2015-06-17 12:43 ` jakub at gcc dot gnu.org
@ 2015-06-17 19:44 ` jason at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2015-06-17 19:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66383

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.


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

end of thread, other threads:[~2015-06-17 19:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-02 15:46 [Bug c++/66383] New: ICE in gimplify_expr on this passed in inline initialization alltaken380 at gmail dot com
2015-06-02 15:49 ` [Bug c++/66383] " alltaken380 at gmail dot com
2015-06-02 15:50 ` alltaken380 at gmail dot com
2015-06-03  7:25 ` [Bug c++/66383] [5/6 Regression] " rguenth at gcc dot gnu.org
2015-06-05 21:14 ` jason at gcc dot gnu.org
2015-06-09 17:19 ` jason at gcc dot gnu.org
2015-06-17 12:43 ` jakub at gcc dot gnu.org
2015-06-17 19:44 ` 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).