[Bug c++/101480] [11 Regression] Miscompiled code involving operator new

hubicka at kam dot mff.cuni.cz gcc-bugzilla@gcc.gnu.org
Mon Oct 11 15:03:15 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101480

--- Comment #21 from hubicka at kam dot mff.cuni.cz ---
Hi,
note that also tree-ssa-structalias has:
/* If the call is to a replaceable operator delete and results            
   from a delete expression as opposed to a direct call to                
   such operator, then the effects for PTA (in particular                 
   the escaping of the pointer) can be ignored.  */                       
else if (fndecl                                                           
         && DECL_IS_OPERATOR_DELETE_P (fndecl)                            
         && gimple_call_from_new_or_delete (t))                           
  ;                                                                       
I wonder if this is safe...

Honza


More information about the Gcc-bugs mailing list