Bug 102173 - [12 Regression] ICEs gcc.target/aarch64/sve/acle/general-c/type_redef_1.c after recent error recovery patch
Summary: [12 Regression] ICEs gcc.target/aarch64/sve/acle/general-c/type_redef_1.c aft...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 12.0
: P3 normal
Target Milestone: 12.0
Assignee: Andrew Pinski
URL: https://gcc.gnu.org/pipermail/gcc-pat...
Keywords: error-recovery, ice-on-invalid-code, patch
Depends on:
Blocks:
 
Reported: 2021-09-02 10:36 UTC by Andrew Pinski
Modified: 2021-09-03 16:59 UTC (History)
2 users (show)

See Also:
Host:
Target: aarch64
Build:
Known to work:
Known to fail:
Last reconfirmed: 2021-09-02 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2021-09-02 10:36:40 UTC
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/type_redef_1.c:5:9: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in register_vector_type, at config/aarch64/aarch64-sve-builtins.cc:3419
0x6a8c0b tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*)
        /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/tree.c:8738
0x11ed7bf tree_class_check(tree_node*, tree_code_class, char const*, int, char const*)
        /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/tree.h:3523
0x11ed7bf register_vector_type
        /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:3419
0x11ed7bf aarch64_sve::handle_arm_sve_h()
        /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-sve-builtins.cc:3535
0x802ab7 aarch64_pragma_aarch64
        /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/config/aarch64/aarch64-c.c:298
0x7309a3 c_parser_pragma
        /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/c/c-parser.c:12573
0x75e56b c_parser_external_declaration
        /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/c/c-parser.c:1761
0x75ecef c_parser_translation_unit
        /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/c/c-parser.c:1653
0x75ecef c_parse_file()
        /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/c/c-parser.c:22581
0x7c8097 c_common_parse_file()
        /home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/c-family/c-opts.c:1236
Comment 1 Andrew Pinski 2021-09-02 10:38:45 UTC
I will fix this tomorrow.
Comment 2 Christophe Lyon 2021-09-02 12:46:59 UTC
Appeared after r12-3278 g:823685221de986afb729910a6f2237f07a377f17
Comment 3 Andrew Pinski 2021-09-02 19:58:11 UTC
(In reply to Christophe Lyon from comment #2)
> Appeared after r12-3278 g:823685221de986afb729910a6f2237f07a377f17

Yes caused by r12-3278.
Comment 4 Andrew Pinski 2021-09-02 21:14:41 UTC
patch posted:
https://gcc.gnu.org/pipermail/gcc-patches/2021-September/578726.html
Comment 5 Andrew Pinski 2021-09-03 16:59:12 UTC
Fxied by r12-3349-g6b69bf5729852d0510abbe8e04078ddecef0cf17.  I forgot to put the PR # in the changelog area.