public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/102763] New: ICE on gimple code: segmentation fault, build_component_ref
@ 2021-10-15  5:50 cnsun at uwaterloo dot ca
  2021-10-15  6:51 ` [Bug c/102763] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: cnsun at uwaterloo dot ca @ 2021-10-15  5:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102763
           Summary: ICE on gimple code: segmentation fault,
                    build_component_ref
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cnsun at uwaterloo dot ca
  Target Milestone: ---

$ 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
__GIMPLE
foo() { get_current()->flags; }

$ gcc-trunk -w -fgimple mutant.c
mutant.c: In function ‘foo’:
mutant.c:2:1: internal compiler error: Segmentation fault
    2 | foo() { get_current()->flags; }
      | ^~~
0xf8c8d3 crash_signal
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/toplev.c:326
0x967665 build_component_ref(unsigned int, tree_node*, tree_node*, unsigned
int)
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-typeck.c:2466
0x9c27bf c_parser_gimple_postfix_expression_after_primary
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:1838
0x9c27bf c_parser_gimple_postfix_expression
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:1716
0x9c3b13 c_parser_gimple_unary_expression
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:1203
0x9c44f1 c_parser_gimple_statement
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:710
0x9c5273 c_parser_gimple_compound_statement
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:650
0x9c5273 c_parser_gimple_compound_statement
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:381
0x9c6f47 c_parser_parse_gimple_body(c_parser*, char*, c_declspec_il,
profile_count)
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:253
0x9b48c8 c_parser_declaration_or_fndef
        /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-parser.c:2539
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.

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

end of thread, other threads:[~2021-10-15  8:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15  5:50 [Bug c/102763] New: ICE on gimple code: segmentation fault, build_component_ref cnsun at uwaterloo dot ca
2021-10-15  6:51 ` [Bug c/102763] " rguenth at gcc dot gnu.org
2021-10-15  8:20 ` cvs-commit at gcc dot gnu.org
2021-10-15  8:21 ` 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).