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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|WAITING                     |NEW
                 CC|                            |hubicka at gcc dot gnu.org
   Target Milestone|---                         |11.0
           Keywords|                            |ice-on-valid-code

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed on trunk (with z2.cc):

> ./cc1plus -quiet t.ii
t.ii: In function 'float f(float)':
t.ii:3:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    3 |   return __builtin_pow[1] (x, 2);
      |                         ^
rguenther@ryzen:~/obj-gcc2-g/gcc> ./cc1plus -quiet t.ii -O2
t.ii: In function 'float f(float)':
t.ii:3:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    3 |   return __builtin_pow[1] (x, 2);
      |                         ^
during IPA pass: modref
t.ii: At global scope:
t.ii:4:1: internal compiler error: Segmentation fault
    4 | }
      | ^
0x1851657 crash_signal
        /home/rguenther/src/gcc2/gcc/toplev.c:327
0xc8fbe8 symtab_node::ultimate_alias_target(availability*, symtab_node*)
        /home/rguenther/src/gcc2/gcc/cgraph.h:3182
0x10c5fbe cgraph_node::ultimate_alias_target(availability*, symtab_node*)
        /home/rguenther/src/gcc2/gcc/cgraph.h:3203
0x10c2224 cgraph_node::function_or_virtual_thunk_symbol(availability*,
symtab_node*)
        /home/rguenther/src/gcc2/gcc/cgraph.c:3868
0x1477503 compute_parm_map
        /home/rguenther/src/gcc2/gcc/ipa-modref.c:2900

Reply via email to