https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70084
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-03-04 Target Milestone|--- |6.0 Ever confirmed|0 |1 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think the problem is that build_va_arg forces ADDR_EXPR with a slightly different type than building ADDR_EXPR of expr would normally use, and due to the C++14 extra paren reference we have ADDR_EXPR with the type we want of INDIRECT_REF of NOP_EXPR (reference) of ADDR_EXPR, and the ADDR_EXPR of INDIRECT_REF is cancelled early and we get the reference to array type we really aren't prepared to handle.