https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86296
--- Comment #3 from Alexis Wilke <alexis at m2osw dot com> --- Okay, I understand and fixed my pointer class and its usage (i.e. I not have an "operator T () const" instead of "T & operator * ()" and I use "safe_fd.get()" instead of "*safe_fd"). However, as an FYI, I tried the -fsanitize=address and the -D_GLIBCXX_ASSERTIONS command line options as shown in your examples and did not get any errors reported in my environment. So as much as these look like useful options, they don't seem to be activated as is. I even tried to run the code in gdb in case some debug would react there and it did not help either. It's rather annoying to see that such features can't automatically be used and work as expected. It would be very useful.