Fix #19734 (ICE)
Add test for issue #19734
Merge pull request #19778 from aochagavia/ice

Fix #19734

Reviewed-by: alexcrichton