Jakub Jelinek <jakub at gcc dot> changed:

           What    |Removed                     |Added
                 CC|                            |jason at gcc dot
   Target Milestone|---                         |7.4
            Summary|Segmentation fault when     |[7/8 Regression]
                   |setting -g                  |Segmentation fault when
                   |                            |setting -g

--- Comment #4 from Jakub Jelinek <jakub at gcc dot> ---
I don't see how my change could be related, neither of the two functions I've
touched is ever called on the testcase.
The ICE goes away with -fno-new-ttp-matching, so I think it is much more likely
this is caused by r243871.

The ICE is because dwarf2out is invoked on a RECORD_TYPE that is not
instantiated, at least its FIELD_DECL has been created by:
23578                 /* Remove constructors and such from TYPE, now that we
23579                    know it is an anonymous aggregate.  */
23580                 fixup_anonymous_aggr (type);
23581                 /* And make the corresponding data member.  */
23582                 decl = build_decl (decl_spec_token_start->location,
23583                                    FIELD_DECL, NULL_TREE, type);
23584                 /* Add it to the class.  */
23585                 finish_member_declaration (decl);
in parser.c.

Reply via email to