This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/79307] g++ misses warning for reference on temporary that invokes undefined behaviour


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]