public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102214] New: ICE when compiling local class with -fno-weak
@ 2021-09-06  9:23 fxue at os dot amperecomputing.com
  2021-09-06  9:34 ` [Bug c++/102214] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: fxue at os dot amperecomputing.com @ 2021-09-06  9:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102214

            Bug ID: 102214
           Summary: ICE when compiling local class with -fno-weak
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fxue at os dot amperecomputing.com
  Target Milestone: ---

Created attachment 51413
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51413&action=edit
testcase

Compiling attached testcase with option "-flto -O3 -fno-weak" will get:

during IPA pass: *free_lang_data                                                
ic.cpp:5:11: internal compiler error: in mangle_decl, at cp/mangle.c:4088       
    5 |     class InnerParent {                                                 
      |           ^~~~~~~~~~~                                                   
0xbe3ef2 mangle_decl(tree_node*)                                                
        ../../gcc/cp/mangle.c:4088                                              
0x17b0ac4 decl_assembler_name(tree_node*)
        ../../gcc/tree.c:710
0x17bd358 assign_assembler_name_if_needed(tree_node*)
        ../../gcc/tree.c:6318
0x17bd471 free_lang_data_in_cgraph
        ../../gcc/tree.c:6366
0x17bd606 free_lang_data
        ../../gcc/tree.c:6411
0x17bd7ac execute
        ../../gcc/tree.c:6483

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-07-07 10:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-06  9:23 [Bug c++/102214] New: ICE when compiling local class with -fno-weak fxue at os dot amperecomputing.com
2021-09-06  9:34 ` [Bug c++/102214] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
2022-01-17 13:32 ` rguenth at gcc dot gnu.org
2022-05-27  9:46 ` [Bug c++/102214] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:46 ` jakub at gcc dot gnu.org
2023-07-07 10:40 ` [Bug c++/102214] [11/12/13/14 " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).