On Mon, Jan 23, 2017 at 4:13 PM, Jakub Jelinek <ja...@redhat.com> wrote: > On Mon, Jan 23, 2017 at 04:06:22PM -0500, Jason Merrill wrote: >> > The right solution is to fix the IR. In the C++ FE have BITFIELD_REF (or a >> > new node) look much more like COMPONENT_REF (or even be COMPONENT_REF, but >> > I >> > suspect lots of places think ADDR (COMPONENT_REF (...)) is legit). And >> > lower it to the middle-end generic representation in cp_genericize. I >> > don't >> > think this is the right time for a change of that magnitude though. >> >> Yes, for this and other reasons we should do constexpr evaluation on >> the pre-genericized trees. > > Maybe even pre-cp_folded.
Definitely. I think of that as being part of genericization. Jason