[Bug c++/79307] g++ misses warning for reference on temporary that invokes undefined behaviour
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 31 18:40:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79307
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note -fsanitize=address complains about this (though
==3971==ERROR: AddressSanitizer: stack-buffer-underflow on address
0x7ffef8cabe50 at pc 0x0000004011db bp 0x7ffef8cabe10 sp 0x7ffef8cabe08
rather than use after scope I was expecting. CCing Martin.
More information about the Gcc-bugs
mailing list