[Bug c/86287] AddressSanitizer: heap-use-after-free on bootstrap with -O3

2018-06-23 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86287 --- Comment #2 from David Binderman --- Reduced C code is this: typedef struct { long a; long b; long c } d; typedef struct { int dtype; d dim[] } e; e f; g; h() { for (; g; ++g) f.dim[g].b = f.dim[g].c = f.dim[g].a = 1; }

[Bug c/86287] AddressSanitizer: heap-use-after-free on bootstrap with -O3

2018-06-23 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86287 --- Comment #1 from David Binderman --- Created attachment 44314 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44314=edit C source code The attached C code, when compiled with flag -O3, on a recent asan version of trunk seems to cause