https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62316
David Malcolm <dmalcolm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.org --- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> --- The warning is emitted by cp/decl.c:reshape_init_r which takes a vec of constructor_elt. These are index/value pairs (of tree), and the values in the testcases are just INTEGER_CST: we've already discarded the location information. So a prerequisite to fixing this might be to retain location information for INTEGER_CST, perhaps with a wrapper node? (as per https://gcc.gnu.org/ml/gcc-patches/2015-11/msg02762.html ) (or to add location_t to constructor_elt, I suppose).