https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81885 --- Comment #2 from Jörg Richter <joerg.richter@pdv-fs.de> --- Okay, I see your point. But I think calling operator->() to get the pointer is not a very common use-case. Its more like get() is the right function for this task.