On Thu, Mar 22, 2018 at 7:00 PM, Alexandre Oliva <aol...@redhat.com> wrote: > fn[0]() ICEs because we end up with addr_expr of a decl, and that > should only happen for artificial or otherwise special internal > functions. For anything else, we should find the decl earlier, but we > don't because we build an indirect_ref or an addr_expr and don't > cancel them out.
That's deliberate; we recently changed the C++ front end to defer most folding until genericization time. Jason