https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117508
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- I think this usually happens when some subexpression doesn't have accurate location info, so it's just "somewhere in test01" which gdb treats as the closing brace.