[Bug c++/80613] ice in is_gimple_reg_type with -O2

2017-05-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80613

Richard Biener  changed:

   What|Removed |Added

 CC||gerald at pfeifer dot com

--- Comment #2 from Richard Biener  ---
*** Bug 80621 has been marked as a duplicate of this bug. ***

[Bug c++/80613] ice in is_gimple_reg_type with -O2

2017-05-03 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80613

--- Comment #1 from David Binderman  ---
Reduced C++ code is

extern "C" void free(void *);
char *a(int);
extern "C" char *strdup(const char *);
int b;
void c() {
  for (;;) {
char d = *a(b);
char *e = strdup(&d);
free(e);
  }
}