public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/64465] New: [5 Regression] internal compiler error: verify_flow_info failed
@ 2015-01-01 15:48 hjl.tools at gmail dot com
  2015-01-01 18:11 ` [Bug middle-end/64465] " hjl.tools at gmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: hjl.tools at gmail dot com @ 2015-01-01 15:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64465
           Summary: [5 Regression] internal compiler error:
                    verify_flow_info failed
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com

On Linux/x86-64, r219127 gave:

[hjl@gnu-tools-1 tmp]$ cat foo.c
typedef void (*__sighandler_t) (int);
struct sigaction
  {
 __sighandler_t sa_handler;
  };
extern int sigaction (const struct sigaction *__restrict __act);
extern int __open_alias (const char *__path, int __oflag, ...) __asm__ (""
"open")
                              ;
extern __inline __attribute__ ((__always_inline__)) __attribute__
((__artificial__)) int
open (const char *__path, int __oflag, ...)
{
  if (__builtin_constant_p (__oflag))
    return __open_alias (__path, __oflag, __builtin_va_arg_pack ());
  return __open_alias (__path, __oflag, __builtin_va_arg_pack ());
}
extern int close(int fd);
static void
set_fortify_handler (void (*handler) (int sig))
{
  struct sigaction sa;
  sigaction (&sa);
  int fd = open ("/dev/null", 3);
  if (fd == -1)
    close (1);
}
extern void handler (int sig);
void
do_test (void)
{
  set_fortify_handler (handler);
}
[hjl@gnu-tools-1 tmp]$
/export/build/gnu/gcc-x32/release/usr/gcc-5.0.0-x32/bin/gcc -O2 foo.c   -O2
-Wall -fexceptions  
foo.c: In function ‘set_fortify_handler’:
foo.c:31:1: error: BB 5 last statement has incorrectly set lp
 }
 ^
foo.c:31:1: internal compiler error: verify_flow_info failed
0x71e49b verify_flow_info()
    /export/gnu/import/git/gcc/gcc/cfghooks.c:271
0xb33b39 cleanup_tree_cfg_noloop
    /export/gnu/import/git/gcc/gcc/tree-cfgcleanup.c:753
0xb33b39 cleanup_tree_cfg()
    /export/gnu/import/git/gcc/gcc/tree-cfgcleanup.c:802
0xa32b14 execute_function_todo
    /export/gnu/import/git/gcc/gcc/passes.c:1893
0xa33603 execute_todo
    /export/gnu/import/git/gcc/gcc/passes.c:1997
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.
>From gcc-bugs-return-472016-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 01 16:15:26 2015
Return-Path: <gcc-bugs-return-472016-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19519 invoked by alias); 1 Jan 2015 16:15:26 -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 19494 invoked by uid 48); 1 Jan 2015 16:15:21 -0000
From: "ville.voutilainen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64466] New: A generic lambda in a class template causes an ICE in gimplify
Date: Thu, 01 Jan 2015 16:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ville.voutilainen at gmail dot com
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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc
Message-ID: <bug-64466-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: 2015-01/txt/msg00010.txt.bz2
Content-length: 3010

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd466

            Bug ID: 64466
           Summary: A generic lambda in a class template causes an ICE in
                    gimplify
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ville.voutilainen at gmail dot com
                CC: jason at redhat dot com

template<typename T> struct my_queue {
    void push(T){ }
    void ice(){ trav([&](auto &&v){ push(v); }); }
    template<typename F> void trav(F &&f){ f(T()); }
};
template class my_queue<int>;

Clang accepts the code. gcc ICEs:

lhmouse2.cpp: In lambda function:
lhmouse2.cpp:3:41: internal compiler error: Segmentation fault
     void ice(){ trav([&](auto &&v){ push(v); }); }
                                         ^
0xca552f crash_signal
        ../../gcc/toplev.c:358
0xa009f8 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
        ../../gcc/tree.h:2892
0xa009f8 size_binop_loc(unsigned int, tree_code, tree_node*, tree_node*)
        ../../gcc/fold-const.c:1735
0xabfa04 gimplify_compound_lval
        ../../gcc/gimplify.c:2012
0xab7619 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:7686
0xac19af gimplify_call_expr
        ../../gcc/gimplify.c:2449
0xab790f gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:7705
0xabbe16 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gimplify.c:5473
0xab80ee gimplify_cleanup_point_expr
        ../../gcc/gimplify.c:5249
0xab80ee gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:8097
0xabbe16 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gimplify.c:5473
0xabccb5 gimplify_bind_expr
        ../../gcc/gimplify.c:1110
0xab78ed gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:7931
0xabbe16 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gimplify.c:5473
0xabd775 gimplify_body(tree_node*, bool)
        ../../gcc/gimplify.c:8843
0xabdd76 gimplify_function_tree(tree_node*)
        ../../gcc/gimplify.c:8996
0x903397 cgraph_node::analyze()
        ../../gcc/cgraphunit.c:613
0x905c57 analyze_functions
        ../../gcc/cgraphunit.c:1001
0x906855 symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.c:2351
0x6e3a8b cp_write_global_declarations()
        ../../gcc/cp/decl2.c:4742
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] 11+ messages in thread

end of thread, other threads:[~2015-01-05 22:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-01 15:48 [Bug middle-end/64465] New: [5 Regression] internal compiler error: verify_flow_info failed hjl.tools at gmail dot com
2015-01-01 18:11 ` [Bug middle-end/64465] " hjl.tools at gmail dot com
2015-01-01 19:09 ` hubicka at gcc dot gnu.org
2015-01-02 14:59 ` jakub at gcc dot gnu.org
2015-01-05 14:35 ` jakub at gcc dot gnu.org
2015-01-05 15:48 ` hubicka at ucw dot cz
2015-01-05 15:57 ` jakub at gcc dot gnu.org
2015-01-05 16:45 ` hubicka at ucw dot cz
2015-01-05 17:11 ` jakub at gcc dot gnu.org
2015-01-05 21:45 ` jakub at gcc dot gnu.org
2015-01-05 22:06 ` jakub 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).