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

            Bug ID: 59776
           Summary: gcc -g -O1 ICE in expand_debug_locations, at
                    cfgexpand.c:3865
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com

/* gcc -g -O1 ICE in expand_debug_locations, at cfgexpand.c:3865 */
/* gcc 4.8.2-7 20131212 */
typedef struct {
  float re,im;
} Complex;
void sub_(Complex *var_Dummy)
{
Complex var_;
auto Complex dummy_;
var_ =  *var_Dummy;
 *(((int *)&(dummy_.re))) = 0;
 *(((int *)&(dummy_.im))) = 0;
dummy_ = var_;
}
/*
gccerr8.c: In function ‘sub_’:
gccerr8.c:6:6: internal compiler error: in expand_debug_locations, at
cfgexpand.c:3865
 void sub_(var_Dummy)
      ^
Please submit a full bug report, with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccrC9Ofk.out file, please attach this to
your bugreport.

// /usr/libexec/gcc/x86_64-redhat-linux/4.8.2/cc1 -quiet gccerr8.c -quiet
-dumpbase gccerr8.c -mtune=generic -march=x86-64 -auxbase gccerr8 -g -O1 -o -
-frandom-seed=0
# 1 "gccerr8.c"
# 1 "/home/vitti/f95/cc//"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "gccerr8.c"
typedef struct {
  float re,im;
} Complex;
void sub_(Complex *var_Dummy)
{
Complex var_;
auto Complex dummy_;
var_ = *var_Dummy;
 *(((int *)&(dummy_.re))) = 0;
 *(((int *)&(dummy_.im))) = 0;
dummy_ = var_;
}
*/

Reply via email to