This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80613] ice in is_gimple_reg_type with -O2
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 03 May 2017 18:44:01 +0000
- Subject: [Bug c++/80613] ice in is_gimple_reg_type with -O2
- Auto-submitted: auto-generated
- References: <bug-80613-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80613
--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
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);
}
}