[Bug c/89990] request warning: Use of out of bound compound initialised struct

2019-04-05 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89990 --- Comment #2 from Andrew Pinski --- https://gcc.gnu.org/gcc-9/porting_to.html -fsantizier=address is able to find these uses after escaping the scope.

[Bug c/89990] request warning: Use of out of bound compound initialised struct

2019-04-05 Thread eblake at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89990 --- Comment #1 from Eric Blake --- Other references to compound initializers going out of scope and causing problems: https://stackoverflow.com/questions/47691857/lifetime-of-a-compound-literal https://wiki.sei.cmu.edu/confluence/display/c/DCL21-