public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60713] New: [4.8/4.9 regression] ICE in iterative_hash_expr
@ 2014-03-30 23:13 ppluzhnikov at google dot com
  2014-03-31  8:20 ` [Bug c++/60713] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ppluzhnikov at google dot com @ 2014-03-30 23:13 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60713
           Summary: [4.8/4.9 regression] ICE in iterative_hash_expr
           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/13644122

Reproduces with current trunk (r208944):

g++ -c -std=c++11 t.cc && echo ok
ok

g++ -c -std=c++11 t.cc -O2

t.cc: In member function ‘void x6::x7()’:
t.cc:20:7: internal compiler error: in iterative_hash_expr, at tree.c:7475
     });
       ^
0xd78b9f iterative_hash_expr(tree_node const*, unsigned int)
    ../../gcc/tree.c:7475
0xd78a22 iterative_hash_expr(tree_node const*, unsigned int)
    ../../gcc/tree.c:7508
0xd7886b iterative_hash_expr(tree_node const*, unsigned int)
    ../../gcc/tree.c:7448
0x9abf3c gimplify_hasher::hash(gimple_temp_hash_elt const*)
    ../../gcc/gimplify.c:8908
0x9abf3c hash_table<gimplify_hasher,
xcallocator>::find_slot(gimple_temp_hash_elt const*, insert_option)
    ../../gcc/hash-table.h:505
0x9abf3c lookup_tmp_var
    ../../gcc/gimplify.c:488
0x9abf3c internal_get_tmp_var
    ../../gcc/gimplify.c:523
0x9a4bf1 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
    ../../gcc/gimplify.c:8358
0x9af968 gimplify_call_expr
    ../../gcc/gimplify.c:2375
0x9a5047 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
    ../../gcc/gimplify.c:7431
0x9a9996 gimplify_stmt(tree_node**, gimple_statement_base**)
    ../../gcc/gimplify.c:5353
0x9a50d2 gimplify_cleanup_point_expr
    ../../gcc/gimplify.c:5129
0x9a50d2 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
    ../../gcc/gimplify.c:7823
0x9a9996 gimplify_stmt(tree_node**, gimple_statement_base**)
    ../../gcc/gimplify.c:5353
0x9ab1f9 gimplify_body(tree_node*, bool)
    ../../gcc/gimplify.c:8567
0x9ab7d6 gimplify_function_tree(tree_node*)
    ../../gcc/gimplify.c:8720
0x8393a7 analyze_function
    ../../gcc/cgraphunit.c:649
0x83a65b analyze_functions
    ../../gcc/cgraphunit.c:1017
0x83bd55 finalize_compilation_unit()
    ../../gcc/cgraphunit.c:2320
0x63541e cp_write_global_declarations()
    ../../gcc/cp/decl2.c:4610
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.

/// cut here 
template < class x0, class x1, class x2, class x3, class x4 >
int *x5 (x0 *, x2 (x1::*)(x3, x4));

class x6
{
    void x7 ();
    struct x8
    {
        int *x9;
    };
    void x10 (x8);
    void x11 (int *, int *);
};

void
x6::x7 ()
{
    x10 ({
        x5 (this, &x6::x11)
    });
}
>From gcc-bugs-return-447865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 30 23:13:19 2014
Return-Path: <gcc-bugs-return-447865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27843 invoked by alias); 30 Mar 2014 23:13:18 -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 27793 invoked by uid 55); 30 Mar 2014 23:13:12 -0000
From: "kkojima at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/60039] sh3 optimisation bug with -O2
Date: Sun, 30 Mar 2014 23:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.8.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kkojima at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
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-60039-4-OS4jGa1dfi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60039-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60039-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-03/txt/msg02734.txt.bz2
Content-length: 436

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`039

--- Comment #10 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
Author: kkojima
Date: Sun Mar 30 23:12:36 2014
New Revision: 208950

URL: http://gcc.gnu.org/viewcvs?rev 8950&root=gcc&view=rev
Log:
    PR target/60039
    * config/sh/sh.md (udivsi3_i1): Clobber R1 register.


Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/sh/sh.md


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

* [Bug c++/60713] [4.8/4.9 regression] ICE in iterative_hash_expr
  2014-03-30 23:13 [Bug c++/60713] New: [4.8/4.9 regression] ICE in iterative_hash_expr ppluzhnikov at google dot com
@ 2014-03-31  8:20 ` rguenth at gcc dot gnu.org
  2014-04-01 17:53 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-03-31  8:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.7.3
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|                            |2014-03-31
     Ever confirmed|0                           |1
   Target Milestone|---                         |4.8.3
      Known to fail|                            |4.8.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  We have a lang-specifc tree in the GENERIC fed to gimplification:

 <call_expr 0x7ffff6d74680
...
    arg 1 <ptrmem_cst 0x7ffff6d8bdc0
        type <record_type 0x7ffff6d91dc8 TI
            size <integer_cst 0x7ffff6c40140 constant 128>
            unit size <integer_cst 0x7ffff6c40160 constant 16>
            align 64 symtab 0 alias set -1 canonical type 0x7ffff6d91dc8 fields
<field_decl 0x7ffff6d92be0 __pfn> ptrmemfunc fn type <pointer_type
0x7ffff6d91d20>
            chain <type_decl 0x7ffff6d93170 __ptrmemfunc_type>>
        constant>
    t.ii:19:26>


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

* [Bug c++/60713] [4.8/4.9 regression] ICE in iterative_hash_expr
  2014-03-30 23:13 [Bug c++/60713] New: [4.8/4.9 regression] ICE in iterative_hash_expr ppluzhnikov at google dot com
  2014-03-31  8:20 ` [Bug c++/60713] " rguenth at gcc dot gnu.org
@ 2014-04-01 17:53 ` jason at gcc dot gnu.org
  2014-04-01 19:14 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-04-01 17:53 UTC (permalink / raw)
  To: gcc-bugs

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

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] 7+ messages in thread

* [Bug c++/60713] [4.8/4.9 regression] ICE in iterative_hash_expr
  2014-03-30 23:13 [Bug c++/60713] New: [4.8/4.9 regression] ICE in iterative_hash_expr ppluzhnikov at google dot com
  2014-03-31  8:20 ` [Bug c++/60713] " rguenth at gcc dot gnu.org
  2014-04-01 17:53 ` jason at gcc dot gnu.org
@ 2014-04-01 19:14 ` jason at gcc dot gnu.org
  2014-04-01 19:16 ` [Bug c++/60713] [4.8 " 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-04-01 19:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Apr  1 19:13:50 2014
New Revision: 208995

URL: http://gcc.gnu.org/viewcvs?rev=208995&root=gcc&view=rev
Log:
    PR c++/60713
    * typeck2.c (PICFLAG_SIDE_EFFECTS): New.
    (picflag_from_initializer): Return it.
    (process_init_constructor): Handle it.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/initlist81.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck2.c


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

* [Bug c++/60713] [4.8 regression] ICE in iterative_hash_expr
  2014-03-30 23:13 [Bug c++/60713] New: [4.8/4.9 regression] ICE in iterative_hash_expr ppluzhnikov at google dot com
                   ` (2 preceding siblings ...)
  2014-04-01 19:14 ` jason at gcc dot gnu.org
@ 2014-04-01 19:16 ` jason at gcc dot gnu.org
  2014-05-13 16:05 ` jason at gcc dot gnu.org
  2014-05-13 16:07 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-04-01 19:16 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.9.0
            Summary|[4.8/4.9 regression] ICE in |[4.8 regression] ICE in
                   |iterative_hash_expr         |iterative_hash_expr

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.9 so far.


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

* [Bug c++/60713] [4.8 regression] ICE in iterative_hash_expr
  2014-03-30 23:13 [Bug c++/60713] New: [4.8/4.9 regression] ICE in iterative_hash_expr ppluzhnikov at google dot com
                   ` (3 preceding siblings ...)
  2014-04-01 19:16 ` [Bug c++/60713] [4.8 " jason at gcc dot gnu.org
@ 2014-05-13 16:05 ` jason at gcc dot gnu.org
  2014-05-13 16:07 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ 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=60713

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue May 13 16:05:13 2014
New Revision: 210383

URL: http://gcc.gnu.org/viewcvs?rev=210383&root=gcc&view=rev
Log:
    PR c++/60713
    * typeck2.c (PICFLAG_SIDE_EFFECTS): New.
    (picflag_from_initializer): Return it.
    (process_init_constructor): Handle it.

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


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

* [Bug c++/60713] [4.8 regression] ICE in iterative_hash_expr
  2014-03-30 23:13 [Bug c++/60713] New: [4.8/4.9 regression] ICE in iterative_hash_expr ppluzhnikov at google dot com
                   ` (4 preceding siblings ...)
  2014-05-13 16:05 ` jason at gcc dot gnu.org
@ 2014-05-13 16:07 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-05-13 16:07 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
And 4.8.3.


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

end of thread, other threads:[~2014-05-13 16:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-30 23:13 [Bug c++/60713] New: [4.8/4.9 regression] ICE in iterative_hash_expr ppluzhnikov at google dot com
2014-03-31  8:20 ` [Bug c++/60713] " rguenth at gcc dot gnu.org
2014-04-01 17:53 ` jason at gcc dot gnu.org
2014-04-01 19:14 ` jason at gcc dot gnu.org
2014-04-01 19:16 ` [Bug c++/60713] [4.8 " jason at gcc dot gnu.org
2014-05-13 16:05 ` jason at gcc dot gnu.org
2014-05-13 16:07 ` 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).