[Bug c/105492] [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 since r13-57-g0aa277bf0b4b7943

slyfox at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun May 15 08:30:56 GMT 2022


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

Sergei Trofimovich <slyfox at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slyfox at gcc dot gnu.org

--- Comment #1 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
I similar ICE proxmark3-3.1.0 on x86_64-pc-linux-gnu as well:

$ cat a.c.c
typedef int __attribute__((aligned)) __attribute__((vector_size(8)))
bitslice_value_t;

$ /tmp/gb/gcc/xgcc -B/tmp/gb/gcc -c a.c.c |& ungcc |& unnix

a.c.c:2:1: internal compiler error: in set_underlying_type, at
c-family/c-common.cc:8164
    2 | bitslice_value_t;
      | ^~~~~~~~~~~~~~~~
0x796076 set_underlying_type(tree_node*)
        <<GCC>>/gcc/c-family/c-common.cc:8164
0x6be37a pushdecl(tree_node*)
        <<GCC>>/gcc/c/c-decl.cc:3324
0x6d4ed7 start_decl(c_declarator*, c_declspecs*, bool, tree_node*, unsigned
int*)
        <<GCC>>/gcc/c/c-decl.cc:5285
0x74ec13 c_parser_declaration_or_fndef
        <<GCC>>/gcc/c/c-parser.cc:2315
0x759215 c_parser_external_declaration
        <<GCC>>/gcc/c/c-parser.cc:1787
0x759d45 c_parser_translation_unit
        <<GCC>>/gcc/c/c-parser.cc:1660
0x759d45 c_parse_file()
        <<GCC>>/gcc/c/c-parser.cc:23384
0x7cbfe7 c_common_parse_file()
        <<GCC>>/gcc/c-family/c-opts.cc:1235

$ /tmp/gb/gcc/xgcc -B/tmp/gb/gcc -v

Reading specs from /tmp/gb/gcc/specs
COLLECT_GCC=/tmp/gb/gcc/xgcc
COLLECT_LTO_WRAPPER=/tmp/gb/gcc/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: <<GCC>>/configure --disable-multilib --disable-bootstrap
--with-native-system-header-dir=/<<NIX>>/glibc-2.34-115-dev/include
--prefix=/tmp/gb/__td__ CFLAGS='-O1 -ggdb3' CXXFLAGS='-O1 -ggdb3' LDFLAGS='-O1
-ggdb3'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.0.0 20220515 (experimental) (GCC)


More information about the Gcc-bugs mailing list