https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61015
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Andreas Weber from comment #0) > ArrayRef<Obj*> arrayRef( pSpecialObj ); The discussion of double pointers is not helpful IMHO, the line above creates a temporary and then stores its address. Don't do that.