From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 43E77382CF39; Fri, 20 May 2022 18:38:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43E77382CF39 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/105675] Segmentation fault Date: Fri, 20 May 2022 18:38:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX 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_status resolution keywords Message-ID: In-Reply-To: References: 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, 20 May 2022 18:38:04 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105675 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |WONTFIX Keywords| |ice-on-valid-code --- Comment #3 from Andrew Pinski --- This is a won't fix stitutation.=20 You have & on a type repeated 237,679 times.=20 With a recusive decent compiler, you run out of stack space with that many times. #17 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #18 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #19 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #20 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #21 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #22 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #23 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #24 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #25 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #26 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #27 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #28 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #29 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #30 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #31 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #32 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #33 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #34 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #35 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #36 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #37 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #38 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 #39 0x0000000000b7c653 in cp_parser_declarator (parser=3D0x7ffff72bd7b8, dcl_kind=3DCP_PARSER_DECLARATOR_NAMED, flags=3D0, ctor_dtor_or_conv_p=3D0x0, parenthesized_p=3D, member_p=3Dfalse, friend_p=3Dfalse, static_p=3Dfalse) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22= 948 .... Don't do that many times and you won't run into the stack overflow. There is not much that can be done and the number of references types can be done by the defualt stack size over 1000. Any reasonable program will be able to compile. Basically doctor it hurts when I do this, doctor: don't do that then.=