https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95288
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:6a9a3434c7396ea14c8f9c291694faea382c36dc commit r11-2067-g6a9a3434c7396ea14c8f9c291694faea382c36dc Author: Marek Polacek <pola...@redhat.com> Date: Mon Jul 13 13:05:06 2020 -0400 c++: Add test [PR95288] Somewhat improved by r11-2064, though we still generate junk that seems redundant. But at least it says error: expected â}â before â.â token PR c++/95288 * g++.dg/diagnostic/enum2.C: New test.