[Bug c/105675] Segmentation fault

2022-05-23 Thread watarai775 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105675

--- Comment #6 from Ruslan Mkoyan  ---
By the way, there is one more file (attached 0.cpp.gz).
gcc-9 0.cpp is processed but gcc-12 0.cpp - segfault. With extension .c its ok

[Bug c/105675] Segmentation fault

2022-05-23 Thread watarai775 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105675

--- Comment #5 from Ruslan Mkoyan  ---
Created attachment 53018
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53018=edit
0.cpp

[Bug c/105675] Segmentation fault

2022-05-22 Thread watarai775 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105675

--- Comment #4 from Ruslan Mkoyan  ---
(In reply to Andrew Pinski from comment #3)
> This is a won't fix stitutation. 
> 
> You have & on a type repeated 237,679 times. 
> 
> With a recusive decent compiler, you run out of stack space with that many
> times.
> #17 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #18 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #19 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #20 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #21 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #22 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #23 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #24 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #25 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #26 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #27 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #28 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #29 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #30 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #31 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #32 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at /home/apinski/src/upstream-gcc/gcc/gcc/cp/parser.cc:22948
> #33 0x00b7c653 in cp_parser_declarator (parser=0x772bd7b8,
> dcl_kind=CP_PARSER_DECLARATOR_NAMED, flags=0, ctor_dtor_or_conv_p=0x0,
> parenthesized_p=, member_p=false, friend_p=false,
> static_p=false) at 

[Bug c++/105675] Segmentation fault

2022-05-20 Thread watarai775 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105675

--- Comment #2 from Ruslan Mkoyan  ---
Created attachment 53009
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53009=edit
Input file

[Bug c/105675] New: Segmentation fault

2022-05-20 Thread watarai775 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105675

Bug ID: 105675
   Summary: Segmentation fault
   Product: gcc
   Version: 12.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: watarai775 at gmail dot com
  Target Milestone: ---

Running gcc on input file from an attachment resulting in segmentation fault

gcc-12 1.cpp

gcc-12: internal compiler error: Segmentation fault signal terminated program
cc1plus
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See  for instructions.