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

Chengnian Sun <cnsun at uwaterloo dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cnsun at uwaterloo dot ca

--- Comment #3 from Chengnian Sun <cnsun at uwaterloo dot ca> ---
A possible duplicate.

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch
--prefix=/scratch/software/gcc-trunk --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20211014 (experimental) [master -gee9fa8a57] (GCC)

$ cat mutant.c
baz4(int[(int)+1.0]) {}

$ gcc-trunk  mutant.c
mutant.c:1:1: internal compiler error: in handle_argspec_attribute, at
c-family/c-attribs.c:3654
    1 | baz4(int[(int)+1.0]) {}
      | ^~~~
0x6cba3d handle_argspec_attribute
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c-family/c-attribs.c:3654
0x936c35 decl_attributes(tree_node**, tree_node*, int, tree_node*)
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/attribs.c:715
0x954efc push_parm_decl(c_parm const*, tree_node**)
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-decl.c:5927
0x99de49 c_parser_parms_list_declarator
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-parser.c:4297
0x99e1bc c_parser_parms_declarator
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-parser.c:4223
0x996820 c_parser_direct_declarator_inner
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-parser.c:4136
0x9b37b5 c_parser_declaration_or_fndef
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-parser.c:2154
0x9bd933 c_parser_external_declaration
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-parser.c:1780
0x9be39b c_parser_translation_unit
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-parser.c:1653
0x9be39b c_parse_file()
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-parser.c:23222
0xa20db5 c_common_parse_file()
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c-family/c-opts.c:1237
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to