https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69796
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 37805 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37805&action=edit gcc6-pr69796-2.patch Or don't change it at all. If the FE emits error, then we are in error recovery and don't reach assemble_variable anyway, e.g. symbol_table::compile does nothing if seen_error (), so I think the risks of emitting the error twice are low.