gcc patch #145945: 2 regressions