public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/59630] New: [4.7/4.8/4.9 Regression] ICE converting the return type of a builtin function
@ 2013-12-30 13:54 reichelt at gcc dot gnu.org
  2014-01-02 10:39 ` [Bug middle-end/59630] " mpolacek at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-12-30 13:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59630
           Summary: [4.7/4.8/4.9 Regression] ICE converting the return
                    type of a builtin function
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: reichelt at gcc dot gnu.org

The following valid code snippet (compiled with "-std=c99 -O")
triggers an ICE since GCC 4.7.0:

==============================================================
_Bool foo()
{
  _Bool (*f)(int) = __builtin_abs;
  return f(0);
}
==============================================================

bug.c: In function 'foo':
bug.c:3:21: warning: initialization from incompatible pointer type [enabled by
default]
   _Bool (*f)(int) = __builtin_abs;
                     ^
bug.c:5:1: error: non-trivial conversion at assignment
 }
 ^
_Bool
int
_4 = 0;
bug.c:5:1: internal compiler error: verify_gimple failed
0x9f1726 verify_gimple_in_cfg(function*)
        ../../gcc/gcc/tree-cfg.c:4854
0x9195f2 execute_function_todo
        ../../gcc/gcc/passes.c:1850
0x919f43 execute_todo
        ../../gcc/gcc/passes.c:1884
Please submit a full bug report, [etc.]


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

end of thread, other threads:[~2015-06-23  8:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-30 13:54 [Bug middle-end/59630] New: [4.7/4.8/4.9 Regression] ICE converting the return type of a builtin function reichelt at gcc dot gnu.org
2014-01-02 10:39 ` [Bug middle-end/59630] " mpolacek at gcc dot gnu.org
2014-01-02 14:03 ` jakub at gcc dot gnu.org
2014-01-02 14:49 ` mpolacek at gcc dot gnu.org
2014-01-03 10:06 ` rguenth at gcc dot gnu.org
2014-01-03 10:07 ` rguenth at gcc dot gnu.org
2014-01-08  9:06 ` rguenth at gcc dot gnu.org
2014-01-08 10:07 ` [Bug middle-end/59630] [4.7/4.8 " rguenth at gcc dot gnu.org
2014-06-12 13:45 ` rguenth at gcc dot gnu.org
2014-12-10 12:51 ` [Bug middle-end/59630] [4.8 " rguenth at gcc dot gnu.org
2014-12-19 13:38 ` jakub at gcc dot gnu.org
2015-06-23  8:47 ` rguenth 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).