https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108383
--- Comment #1 from eebssk1 at godaftwithebk dot pub --- It looks like my issue is caused by a extra inconspicuous flag "-fdeclone-ctor-dtor". The program compiled succefully without it. I do use this flag on other projects,never have such problem before.