https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113503
--- Comment #2 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #1) > When trying to further reduce the code I get either an ICE or an > uninitialized-warning for: program xtb implicit none type :: TSolvInput character(len=:), allocatable :: solvent end type character(len=20) :: solvents(1) = 'h2o' type(TSolvInput) :: x ! x = TSolvInput(solvent= solvents(1)) ! ICE x = TSolvInput(solvent=trim(solvents(1))) ! Warning end So it clearly comes from the constructor.