https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62252
klemen.jan.enova at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |klemen.jan.enova at gmail dot com --- Comment #4 from klemen.jan.enova at gmail dot com --- Created attachment 33391 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33391&action=edit cp-parser-patch Fixes the bug. If I use debug_tree(type) in handle_struct(), it prints a RECORD_TYPE only once, because the type declaration and definition happens only once, other uses of the identifier "struct S" are variable declarations.