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

            Bug ID: 122248
           Summary: ice in gen_btf_tag_dies, at dwarf2out.cc:13850
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 62542
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62542&action=edit
C source code

For the attached C code, compiled with recent gcc trunk,
does this on Raspberry Pi 5:

$ for i in ~/gcc/results.2025*/bin/gcc; do echo $i; $i -c -w -g
CodeGen/attr-btf_tag-diglobalvariable.c; done
/home/dcb/gcc/results.20250930/bin/gcc
/home/dcb/gcc/results.20251004/bin/gcc
/home/dcb/gcc/results.20251007/bin/gcc
/home/dcb/gcc/results.20251010/bin/gcc
CodeGen/attr-btf_tag-diglobalvariable.c:22:8: internal compiler error: in
gen_btf_tag_dies, at dwarf2out.cc:13850
   22 | struct t1 g3 __tag2;
      |        ^~
0x1c1a3ef internal_error(char const*, ...)
        ../../trunk/gcc/diagnostic-global-context.cc:787
0x2a2f5f fancy_abort(char const*, int, char const*)
        ../../trunk/gcc/diagnostics/context.cc:1806
0x597683 gen_btf_tag_dies
        ../../trunk/gcc/dwarf2out.cc:13850

$ ~/gcc/results.20251007/bin/gcc -v 2>&1 | grep exp
gcc version 16.0.0 20251007 (experimental) (f4b60fe6d6a16f54) 
$ ~/gcc/results.20251010/bin/gcc -v 2>&1 | grep exp
gcc version 16.0.0 20251010 (experimental) (49ddf362f0a7c1fd) 
$ 

The source code file is from the clang test suite.

Reply via email to