Debugging Fortran on VC code failed

I debugged a simple program locally and called a subprogram in the main program. The following error occurred after adding breakpoint debugging in the subroutine,I tried to rebuild GDB, but it didn’t seem to work。:

“ERROR: GDB exited unexpectedly with exit code 3 (0x3). Debugging will now abort.

The program ‘C:\Users\bin\Desktop\fortran\main.exe’ has exited with code -1 (0xffffffff).”

The complete log is as follows

../../../../src/gdb-8.1/gdb/cp-namespace.c:177: internal-error: block_symbol cp_lookup_bare_symbol(const language_defn*, const char*, const block*, domain_enum, int): Assertion `strstr (name, "::") == NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) [answered Y; input not from terminal]
../../../../src/gdb-8.1/gdb/cp-namespace.c:177: internal-error: block_symbol cp_lookup_bare_symbol(const language_defn*, const char*, const block*, domain_enum, int): Assertion `strstr (name, "::") == NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) [answered Y; input not from terminal]
ERROR: GDB exited unexpectedly with exit code 3 (0x3). Debugging will now abort.
The program 'C:\Users\bin\Desktop\fortran\main.exe' has exited with code -1 (0xffffffff).