public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "anbu1024.me at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/96610] New: [11 Regression] ICE: in gimplify_va_arg_expr, at gimplify.c:15150 Date: Fri, 14 Aug 2020 00:39:38 +0000 [thread overview] Message-ID: <bug-96610-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96610 Bug ID: 96610 Summary: [11 Regression] ICE: in gimplify_va_arg_expr, at gimplify.c:15150 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anbu1024.me at gmail dot com Target Milestone: --- $ cat test.c void foo ( ) { int x ; int y[] = 1; __builtin_va_arg ( x, int z ); } ------------------------------------------------------------------------------- $ gcc-snapshot11 --version gcc (GCC) 11.0.0 20200802 (experimental) Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ------------------------------------------------------------------------------- $ gcc-snapshot11 test.c test.c: In function ‘foo’: test.c:6:15: error: invalid initializer 6 | int y[] = 1; | ^ test.c:8:30: error: expected ‘)’ before ‘z’ 8 | __builtin_va_arg ( x, int z ); | ^~ | ) test.c:8:27: error: first argument to ‘va_arg’ not of type ‘va_list’ 8 | __builtin_va_arg ( x, int z ); | ^~~ test.c:8:27: internal compiler error: in gimplify_va_arg_expr, at gimplify.c:15150 8 | __builtin_va_arg ( x, int z ); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ 0x67c083 gimplify_va_arg_expr(tree_node**, gimple**, gimple**) ../../gcc-11-20200802/gcc/gimplify.c:15150 0xb12522 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc-11-20200802/gcc/gimplify.c:13712 0xb15076 gimplify_stmt(tree_node**, gimple**) ../../gcc-11-20200802/gcc/gimplify.c:6822 0xb130eb gimplify_statement_list ../../gcc-11-20200802/gcc/gimplify.c:1856 0xb130eb gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc-11-20200802/gcc/gimplify.c:14082 0xb15076 gimplify_stmt(tree_node**, gimple**) ../../gcc-11-20200802/gcc/gimplify.c:6822 0xb15d41 gimplify_bind_expr ../../gcc-11-20200802/gcc/gimplify.c:1411 0xb1267d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc-11-20200802/gcc/gimplify.c:13839 0xb2a797 gimplify_stmt(tree_node**, gimple**) ../../gcc-11-20200802/gcc/gimplify.c:6822 0xb2a797 gimplify_body(tree_node*, bool) ../../gcc-11-20200802/gcc/gimplify.c:14874 0xb2abcd gimplify_function_tree(tree_node*) ../../gcc-11-20200802/gcc/gimplify.c:15028 0x974437 cgraph_node::analyze() ../../gcc-11-20200802/gcc/cgraphunit.c:671 0x977477 analyze_functions ../../gcc-11-20200802/gcc/cgraphunit.c:1231 0x97803d symbol_table::finalize_compilation_unit() ../../gcc-11-20200802/gcc/cgraphunit.c:2987 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. ------------------------------------------------------------------------------- $ gcc-snapshot10 --version gcc (GCC) 10.2.1 20200725 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ------------------------------------------------------------------------------- $ gcc-snapshot10 test.c test.c: In function ‘foo’: test.c:6:15: error: invalid initializer 6 | int y[] = 1; | ^ test.c:8:30: error: expected ‘)’ before ‘z’ 8 | __builtin_va_arg ( x, int z ); | ^~ | ) test.c:8:27: error: first argument to ‘va_arg’ not of type ‘va_list’ 8 | __builtin_va_arg ( x, int z ); | ^~~ test.c:8: confused by earlier errors, bailing out
next reply other threads:[~2020-08-14 0:39 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-08-14 0:39 anbu1024.me at gmail dot com [this message] 2020-08-14 1:00 ` [Bug c/96610] " pinskia at gcc dot gnu.org 2020-08-14 7:39 ` [Bug c/96610] ICE: in gimplify_va_arg_expr, at gimplify.c:15150 since r7-2847-gba9bbd6f584afe29 marxin at gcc dot gnu.org 2022-01-03 20:52 ` [Bug c/96610] [9/10 Regression] " pinskia at gcc dot gnu.org 2022-01-03 20:54 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-96610-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).