From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 358123851C2D; Sat, 16 May 2020 11:08:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 358123851C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589627301; bh=Ov6L+o81xdRllz0VAsPz0cOrHt90LAWNdgfZqoksM6w=; h=From:To:Subject:Date:From; b=JKNVcln+S8fWYLAb1ch8WsLPGnsm7PcgfLgj6AAK2gGQ9gXMMB1OV2w2fFIxUqeZy IH5FYM87hN33A+o5TZIEwv9K5u7DSJTXw7vMm3Tb4+1cnTKQczuYb89JVG1D+Y83+B KqNTs5Leq5C/yydPxudRKR//TSri+hVNnFtAB7ig= From: "anbu1024.me at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/95161] New: [10/11 Regression] internal compiler error: in gimplify_expr, at gimplify.c:14609 Date: Sat, 16 May 2020 11:08:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anbu1024.me at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 May 2020 11:08:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95161 Bug ID: 95161 Summary: [10/11 Regression] internal compiler error: in gimplify_expr, at gimplify.c:14609 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=20 unsigned short * x =3D 0 ;=20 int foo ( void ) { * x =3D 0 ; }=20 int x [ ] =3D { 1 , 2 , 3 } $ gcc-11 --version gcc (GCC) 11.0.0 20200510 (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-11 test.c=20 test.c:6:5: error: conflicting types for =E2=80=98x=E2=80=99 6 | int x [ ] =3D { 1 , 2 , 3 } | ^ test.c:2:18: note: previous definition of =E2=80=98x=E2=80=99 was here 2 | unsigned short * x =3D 0 ; | ^ test.c:6:1: error: expected =E2=80=98,=E2=80=99 or =E2=80=98;=E2=80=99 at e= nd of input 6 | int x [ ] =3D { 1 , 2 , 3 } | ^~~ test.c: In function =E2=80=98foo=E2=80=99: test.c:4:20: internal compiler error: in gimplify_expr, at gimplify.c:14609 4 | int foo ( void ) { * x =3D 0 ; } | ^~~ 0x674c01 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc-11-20200510/gcc/gimplify.c:14609 0xb0192a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc-11-20200510/gcc/gimplify.c:13706 0xb1669f gimplify_modify_expr ../../gcc-11-20200510/gcc/gimplify.c:5759 0xaff80c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc-11-20200510/gcc/gimplify.c:13585 0xb02e76 gimplify_stmt(tree_node**, gimple**) ../../gcc-11-20200510/gcc/gimplify.c:6802 0xb03b43 gimplify_bind_expr ../../gcc-11-20200510/gcc/gimplify.c:1411 0xb00383 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc-11-20200510/gcc/gimplify.c:13786 0xb17a87 gimplify_stmt(tree_node**, gimple**) ../../gcc-11-20200510/gcc/gimplify.c:6802 0xb17a87 gimplify_body(tree_node*, bool) ../../gcc-11-20200510/gcc/gimplify.c:14834 0xb17ebd gimplify_function_tree(tree_node*) ../../gcc-11-20200510/gcc/gimplify.c:14988 0x962f47 cgraph_node::analyze() ../../gcc-11-20200510/gcc/cgraphunit.c:670 0x965b47 analyze_functions ../../gcc-11-20200510/gcc/cgraphunit.c:1227 0x966712 symbol_table::finalize_compilation_unit() ../../gcc-11-20200510/gcc/cgraphunit.c:2971 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $ gcc-10 --version gcc (GCC) 10.0.1 20200419 (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-10 test.c=20 test.c:6:5: error: conflicting types for =E2=80=98x=E2=80=99 6 | int x [ ] =3D { 1 , 2 , 3 } | ^ test.c:2:18: note: previous definition of =E2=80=98x=E2=80=99 was here 2 | unsigned short * x =3D 0 ; | ^ test.c:6:1: error: expected =E2=80=98,=E2=80=99 or =E2=80=98;=E2=80=99 at e= nd of input 6 | int x [ ] =3D { 1 , 2 , 3 } | ^~~ test.c: In function =E2=80=98foo=E2=80=99: test.c:4:20: internal compiler error: in gimplify_expr, at gimplify.c:14632 4 | int foo ( void ) { * x =3D 0 ; } | ^~~ 0x674570 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc-10-20200419/gcc/gimplify.c:14632 0xaff66a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc-10-20200419/gcc/gimplify.c:13729 0xb1453f gimplify_modify_expr ../../gcc-10-20200419/gcc/gimplify.c:5782 0xafd53c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc-10-20200419/gcc/gimplify.c:13608 0xb00bd6 gimplify_stmt(tree_node**, gimple**) ../../gcc-10-20200419/gcc/gimplify.c:6825 0xb0199b gimplify_bind_expr ../../gcc-10-20200419/gcc/gimplify.c:1424 0xafe0b3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc-10-20200419/gcc/gimplify.c:13809 0xb15927 gimplify_stmt(tree_node**, gimple**) ../../gcc-10-20200419/gcc/gimplify.c:6825 0xb15927 gimplify_body(tree_node*, bool) ../../gcc-10-20200419/gcc/gimplify.c:14857 0xb15e53 gimplify_function_tree(tree_node*) ../../gcc-10-20200419/gcc/gimplify.c:15030 0x9607d7 cgraph_node::analyze() ../../gcc-10-20200419/gcc/cgraphunit.c:670 0x9633f7 analyze_functions ../../gcc-10-20200419/gcc/cgraphunit.c:1227 0x963fc2 symbol_table::finalize_compilation_unit() ../../gcc-10-20200419/gcc/cgraphunit.c:2974 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=