https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99649
--- Comment #2 from Filip Bascarevic <filip.bascarevic at siemens dot com> --- Hello Andre, thank you so much for your quick reply. I also noticed that but somehow with GCC 8.1 and GDB 8.1 this example works, no GDB endless loop with showing us backtrace.