https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60576
--- Comment #46 from anlauf at gcc dot gnu.org --- (In reply to Jerry DeLisle from comment #45) > Created attachment 64235 [details] > A variation that is giving an ICE > > The explicit deallocates get rid of the valgrind error. While exploring I > hit the ICE. I hope this may give a hint. Comment#15 put the focus on the -fsanitize=address issue which I can confirm, even if it does not show with valgrind. Thus valgrind is not of help here. In your variation you explicitly activated the commented line ! call bar2(x) ! Passing a CLASS to a TYPE does not yet work which is the reason for the ICE. I am not sure if this one is connected to the present issue or not, and whether it is tracked elsewhere. (You could open a separate PR for this and link it to the present one.)
