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

            Bug ID: 117656
           Summary: error: invalid types for ‘bit_ior_expr’
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

This C code:

int **sres_cache_set_srv_priority_iter, **sres_htable_next_ht_0,
    **sres_htable_next_ee;
int **sres_htable_next();
void sres_cache_set_srv_priority() {
  for (; sres_cache_set_srv_priority_iter;
       sres_cache_set_srv_priority_iter = sres_htable_next())
    ;
}
int **sres_htable_next() {
  if (sres_htable_next_ee >= sres_htable_next_ht_0)
    return sres_htable_next_ee;
  return sres_htable_next_ht_0;
}

does this with recent gcc trunk:

cvise $ /home/dcb40b/gcc/results.20241115.asan.ubsan/bin/gcc -c -w -O3
bug1067.c
cvise $ /home/dcb40b/gcc/results.20241117.asan.ubsan/bin/gcc -c -w -O3
bug1067.c
bug1067.c: In function ‘sres_cache_set_srv_priority’:
bug1067.c:4:6: error: invalid types for ‘bit_ior_expr’
    4 | void sres_cache_set_srv_priority() {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
int * *
int * *
int * *
_1 = sres_htable_next_ee.1_4 | sres_htable_next_ht_0.2_6;
during GIMPLE pass: forwprop
bug1067.c:4:6: internal compiler error: verify_gimple failed

For git hashes, I have:

cvise $ /home/dcb40b/gcc/results.20241115.asan.ubsan/bin/gcc -v 2>&1 | grep exp
gcc version 15.0.0 20241115 (experimental) (3757009af71cd840) 
cvise $ /home/dcb40b/gcc/results.20241117.asan.ubsan/bin/gcc -v 2>&1 | grep exp
gcc version 15.0.0 20241117 (experimental) (3e89a4d5138e5857) 
cvise $

Reply via email to