https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65132
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-02-20 CC| |manu at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- Confirmed. Probably it is just a matter of calling cp_parser_constant_expression with the right parameters to not emit errors, then checking after it returns that it indeed parsed a constant-expression and give appropriate errors otherwise.