https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105064

            Bug ID: 105064
           Summary: requires crashes gcc
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: janezz55 at gmail dot com
  Target Milestone: ---

another gcc crash:
g++ -std=c++20 -Ofast loopdemo.cpp -o s

In file included from loopdemo.cpp:3:
loop.hpp:168:45: internal compiler error: Segmentation fault
  168 |     requires(std::is_integral_v<decltype(i)>);
      |                                             ^
0xe4c988 internal_error(char const*, ...)
        ???:0
0xf778a4 duplicate_decls(tree_node*, tree_node*, bool, bool)
        ???:0
0xf82c3b pushdecl_namespace_level(tree_node*, bool)
        ???:0
0x10ecbfe push_template_decl(tree_node*, bool)
        ???:0
0x159b601 do_friend(tree_node*, tree_node*, tree_node*, tree_node*,
overload_flags, bool)
        ???:0
0x1001717 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*,
decl_context, int, tree_node**)
        ???:0
0x105cc75 grokfield(cp_declarator const*, cp_decl_specifier_seq*, tree_node*,
bool, tree_node*, tree_node*)
        ???:0
0x14e7873 c_parse_file()
        ???:0
0x14c9d9e c_common_parse_file()
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.archlinux.org/> for instructions.

source code is here:
https://github.com/user1095108/cr/blob/master/loopdemo.cpp

clang++ compiles the code without issue.

Reply via email to