https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110756
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:40a6803c6d8ca244a7bdda8e4ec986c418362b24 commit r14-3344-g40a6803c6d8ca244a7bdda8e4ec986c418362b24 Author: Thiago Jung Bauermann <thiago.bauerm...@linaro.org> Date: Sun Aug 20 20:46:05 2023 +0200 testsuite: Adjust g++.dg/gomp/pr58567.C to new compiler message Commit 92d1425ca780 "c++: redundant targ coercion for var/alias tmpls" changed the compiler error message in this testcase from <source>: In instantiation of 'void foo() [with T = int]': <source>:14:11: required from here <source>:8:22: error: 'int' is not a class, struct, or union type <source>:8:22: error: 'int' is not a class, struct, or union type <source>:8:22: error: 'int' is not a class, struct, or union type <source>:8:3: error: expected iteration declaration or initialization compiler exited with status 1 to: <source>: In instantiation of 'void foo() [with T = int]': <source>:14:11: required from here <source>:8:22: error: 'int' is not a class, struct, or union type <source>:8:3: error: invalid type for iteration variable 'i' compiler exited with status 1 Excess errors: <source>:8:3: error: invalid type for iteration variable 'i' Andrew Pinski analysed the issue in PR 110756 and considered that it was a testsuite issue in that the error message changed slightly. Also, it's a better error message. Therefore, we only need to adjust the testcase to expect the new message. gcc/testsuite/ChangeLog: PR testsuite/110756 * g++.dg/gomp/pr58567.C: Adjust to new compiler error message.