https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81302
--- Comment #2 from Vittorio Zecca <zeccav at gmail dot com> --- Maybe is this related? // trunk 249883 // from pr46269.C // Segmentation fault // must be compiled with command g++ -fsanitize=address -fgnu-tm template<class T> class shared_ptr { public: shared_ptr( T * p ) { } }; class BuildingCompletedEvent { public: __attribute__((transaction_callable)) void updateBuildingSite(void); BuildingCompletedEvent(); }; void BuildingCompletedEvent::updateBuildingSite(void) { shared_ptr<BuildingCompletedEvent> event(new BuildingCompletedEvent()); } /* * during IPA pass: tmipa In member function ‘void BuildingCompletedEvent::updateBuildingSite()’: internal compiler error: Segmentation fault } ^ 0xe66cef crash_signal ../../gcc-249883/gcc/toplev.c:338 0xe6b2e0 is_tm_irrevocable ../../gcc-249883/gcc/trans-mem.c:234 0xe6ca0f ipa_tm_scan_irr_block ../../gcc-249883/gcc/trans-mem.c:4408 0xe6ca0f ipa_tm_scan_irr_blocks ../../gcc-249883/gcc/trans-mem.c:4479 0xe6dc14 ipa_tm_scan_irr_function ../../gcc-249883/gcc/trans-mem.c:4641 0xe6f54e ipa_tm_execute ../../gcc-249883/gcc/trans-mem.c:5547 0xe6f54e execute ../../gcc-249883/gcc/trans-mem.c:5705 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.