https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101232
--- Comment #9 from Franciszek Witt <franek.witt at gmail dot com> --- I have implemented the improvement mentioned by Jason and also added the hint about missing comma or operator. This patch fails testsuite/g++.dg/parse/error59.C but it was intended to check for ICE (see PR c++/84493) so I think it is fine to accept a different error message?