public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94480] New: ICE in cp_parser_abort_tentative_parse, at cp/parser.c:31858 Date: Fri, 03 Apr 2020 20:26:56 +0000 [thread overview] Message-ID: <bug-94480-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94480 Bug ID: 94480 Summary: ICE in cp_parser_abort_tentative_parse, at cp/parser.c:31858 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- g++-10.0.1-alpha20200329 snapshot (g:60c254b279e8e8443b8ad26cc46b9e4084cff66c) ICEs when compiling the following testcase, extracted from test/CXX/expr/expr.prim/expr.prim.req/requires-expr.cpp from the clang 10.0.0 test suite, w/ -fconcepts: template<typename T, typename U> constexpr bool is_same_v = false; static_assert(is_same_v<bool, decltype(requires { requires false; })>); % g++-10.0.1 -fconcepts -c nn8nrioc.cpp nn8nrioc.cpp:4:60: note: the expression 'false' evaluated to 'false' 4 | static_assert(is_same_v<bool, decltype(requires { requires false; })>); | ~~~~~~~~~^~~~~ nn8nrioc.cpp:4:67: internal compiler error: in cp_parser_abort_tentative_parse, at cp/parser.c:31858 4 | static_assert(is_same_v<bool, decltype(requires { requires false; })>); | ^ 0x63c536 cp_parser_abort_tentative_parse /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:31858 0x63c536 cp_parser_abort_tentative_parse /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:31856 0x9a9b4f cp_parser_decltype_expr /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:14832 0x9a9b4f cp_parser_decltype /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:14920 0x9b34ef cp_parser_simple_type_specifier /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:18008 0x996e45 cp_parser_type_specifier /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:17784 0x9aca80 cp_parser_type_specifier_seq /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:22385 0x9a53c7 cp_parser_type_id_1 /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:22202 0x9a82e3 cp_parser_template_type_arg /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:22293 0x9acc1f cp_parser_template_argument /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:17181 0x9acc1f cp_parser_template_argument_list /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:17092 0x9acc1f cp_parser_enclosed_template_argument_list /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:29761 0x9adf60 cp_parser_template_id /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:16664 0x9ae62a cp_parser_class_name /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:23696 0x9aa385 cp_parser_qualifying_entity /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:6773 0x9aa385 cp_parser_nested_name_specifier_opt /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:6455 0x9b2f59 cp_parser_simple_type_specifier /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:18126 0x9a83ea cp_parser_postfix_expression /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:7173 0x98a669 cp_parser_binary_expression /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:9554 0x98c31e cp_parser_assignment_expression /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:9859
next reply other threads:[~2020-04-03 20:26 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-04-03 20:26 asolokha at gmx dot com [this message] 2020-04-04 9:48 ` [Bug c++/94480] [10 Regression] " marxin at gcc dot gnu.org 2020-04-04 13:57 ` jakub at gcc dot gnu.org 2020-04-07 16:00 ` ppalka at gcc dot gnu.org 2020-04-07 19:23 ` ppalka at gcc dot gnu.org 2020-04-08 5:10 ` jason at gcc dot gnu.org 2020-04-08 5:12 ` cvs-commit at gcc dot gnu.org 2020-04-08 5:16 ` jason at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-94480-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).