From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7537538708E6; Fri, 15 May 2020 02:17:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7537538708E6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589509031; bh=sgF4UNF+FpM3/vWZHO1AVBhlYfPU12Cbcas09rlNF7E=; h=From:To:Subject:Date:From; b=S23nKf5ydAV1nAzqWDNP/yAXQS0Xxh2N03GdA5v7jGibXJOOn4IA0w4QZXoarB2ZG o/sqkIZhn/MlY+luSvNNYSnTfwaYQFpMOx5lxBCOcR4/64Vbi+2KdOp1QuaMGlARia VNKeEnX7wW5sw09LODmYGXhsZwXkioGIBOKd08WM= From: "anbu1024.me at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/95145] New: [10/11 Regression]internal compiler error: in analyze_functions, at cgraphunit.c:1380 Date: Fri, 15 May 2020 02:17:11 +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: Fri, 15 May 2020 02:17:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95145 Bug ID: 95145 Summary: [10/11 Regression]internal compiler error: in analyze_functions, at cgraphunit.c:1380 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 void foo ( )=20 {=20 extern __inline int bar ( ) { } int baz ( ) { return bar ; }=20 } $ 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: In function =E2=80=98foo=E2=80=99: test.c:4:22: error: nested function =E2=80=98bar=E2=80=99 declared =E2=80= =98extern=E2=80=99 4 | extern __inline int bar ( ) { } | ^~~ test.c: In function =E2=80=98baz=E2=80=99: test.c:6:23: warning: returning =E2=80=98int (*)()=E2=80=99 from a function= with return type =E2=80=98int=E2=80=99 makes integer from pointer without a cast []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-con= version-Wint-conversion]8;;] 6 | int baz ( ) { return bar ; } | ^~~ At top level: cc1: internal compiler error: in analyze_functions, at cgraphunit.c:1380 0x63a1df analyze_functions ../../gcc-11-20200510/gcc/cgraphunit.c:1380 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: In function =E2=80=98foo=E2=80=99: test.c:4:22: error: nested function =E2=80=98bar=E2=80=99 declared =E2=80= =98extern=E2=80=99 4 | extern __inline int bar ( ) { } | ^~~ test.c: In function =E2=80=98baz=E2=80=99: test.c:6:23: warning: returning =E2=80=98int (*)()=E2=80=99 from a function= with return type =E2=80=98int=E2=80=99 makes integer from pointer without a cast []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wint-con= version-Wint-conversion]8;;] 6 | int baz ( ) { return bar ; } | ^~~ At top level: cc1: internal compiler error: in analyze_functions, at cgraphunit.c:1380 0x639ab1 analyze_functions ../../gcc-10-20200419/gcc/cgraphunit.c:1380 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.=