https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120051
Iouri Kharon <bc-info at styx dot cabel.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #61364|0 |1 is obsolete| | --- Comment #9 from Iouri Kharon <bc-info at styx dot cabel.net> --- Created attachment 61379 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61379&action=edit A complex patch fixed for this (and several similar) problems. 1. ATTENTION! Don't use 'cfun' as a pointer outside of its processing time - it is allocated via ggc (garbage collector) and can be moved/deleted. 2. When implementation of structure present without preliminary declaration, infinite recursion could occur (when determining the 'this' type for member-function and/or pointers to the processed type from nested types, etc). 3. Also fixed variable size array (thanks for test).