https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79493
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:cdcea7c1ef6586bb1eb0144b741969748cbd780b commit r12-7363-gcdcea7c1ef6586bb1eb0144b741969748cbd780b Author: Marek Polacek <pola...@redhat.com> Date: Wed Feb 23 12:46:21 2022 -0500 c++: Add new test [PR79493] A nice side effect of r12-1822 was improving the diagnostic we emit for the following test. PR c++/79493 gcc/testsuite/ChangeLog: * g++.dg/diagnostic/undeclared1.C: New test.