[Bug c++/90587] asan: stack-use-after-scope with -O3 and -Wall

2019-05-23 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90587 Martin Liška changed: What|Removed |Added Status|WAITING |ASSIGNED Blocks|

[Bug c++/90587] asan: stack-use-after-scope with -O3 and -Wall

2019-05-23 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90587 --- Comment #3 from Martin Liška --- (In reply to David Binderman from comment #2) > Here is the reduced C++ code: > > typedef unsigned a; > typedef char b; > typedef struct { > a *c; > } d; > int e(d *f) { > if (f) > return *f->c; > }

[Bug c++/90587] asan: stack-use-after-scope with -O3 and -Wall

2019-05-23 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90587 --- Comment #2 from David Binderman --- Here is the reduced C++ code: typedef unsigned a; typedef char b; typedef struct { a *c; } d; int e(d *f) { if (f) return *f->c; } a g(d *f) { return e(f); } typedef struct { b channel; } h; b

[Bug c++/90587] asan: stack-use-after-scope with -O3 and -Wall

2019-05-23 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90587 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|