[Bug c++/95288] Poor error message with function-scope enum definition
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 13 17:07:14 GMT 2020
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 <mpolacek@gcc.gnu.org>:
https://gcc.gnu.org/g:6a9a3434c7396ea14c8f9c291694faea382c36dc
commit r11-2067-g6a9a3434c7396ea14c8f9c291694faea382c36dc
Author: Marek Polacek <polacek@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.
More information about the Gcc-bugs
mailing list