Created attachment 1277
repro case
The attached repro case causes a ICE. Tested with the latest git head of the
dmd 2.064 branch. Omitting -inline will avoid the ICE.
For analyze, the inliner generates
(b ? i : i)++;
and because the results of the inliner are never run through semantic, it never gets converted to the lvalue version
(*(b ? &i : &i))++;
This is an inliner bug... The way the inliner interacts with ref is not great.