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

* [Bug c++/102214] [9/10/11/12 Regression] ICE when compiling local class with -fno-weak
  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 ` pinskia at gcc dot gnu.org
  2022-01-17 13:32 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-06  9:34 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Target Milestone|---                         |9.5
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |ice-on-valid-code
            Summary|ICE when compiling local    |[9/10/11/12 Regression] ICE
                   |class with -fno-weak        |when compiling local class
                   |                            |with -fno-weak
      Known to fail|                            |6.1.0
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=65811,
                   |                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=67313,
                   |                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=69113,
                   |                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=79176,
                   |                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=94835
      Known to work|                            |5.1.0
   Last reconfirmed|                            |2021-09-06

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, most likely started with r6-67 (like a few of the linked bugs).

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

* [Bug c++/102214] [9/10/11/12 Regression] ICE when compiling local class with -fno-weak
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-17 13:32 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

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

* [Bug c++/102214] [10/11/12/13 Regression] ICE when compiling local class with -fno-weak
  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 ` 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
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:46 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.5                         |10.4

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed

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

* [Bug c++/102214] [10/11/12/13 Regression] ICE when compiling local class with -fno-weak
  2021-09-06  9:23 [Bug c++/102214] New: ICE when compiling local class with -fno-weak fxue at os dot amperecomputing.com
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:46 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug c++/102214] [11/12/13/14 Regression] ICE when compiling local class with -fno-weak
  2021-09-06  9:23 [Bug c++/102214] New: ICE when compiling local class with -fno-weak fxue at os dot amperecomputing.com
                   ` (3 preceding siblings ...)
  2022-06-28 10:46 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:40 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:40 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

^ 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).