public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95820] New: ICE in splice_late_return_type, at cp/pt.c:29034
@ 2020-06-22 15:01 haoxintu at gmail dot com
  2020-06-22 15:07 ` [Bug c++/95820] " haoxintu at gmail dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: haoxintu at gmail dot com @ 2020-06-22 15:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95820
           Summary: ICE in splice_late_return_type, at cp/pt.c:29034
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: haoxintu at gmail dot com
  Target Milestone: ---

This case bug.cc, reduced by C-Reduce, crashed GCC.

$cat bug.cc
constexpr (*a)()->bool,

$g++ -w -fpermissive small.cc
bug.cc:1:19: internal compiler error: in splice_late_return_type, at
cp/pt.c:29034
    1 | constexpr (*a)()->bool,
      |                   ^~~~
0x5cd1f6 splice_late_return_type(tree_node*, tree_node*)
        ../../gcc/cp/pt.c:29034
0x67db9a grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*,
decl_context, int, tree_node**)
        ../../gcc/cp/decl.c:12154
0x684228 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
        ../../gcc/cp/decl.c:5231
0x70c8ce cp_parser_init_declarator
        ../../gcc/cp/parser.c:20817
0x6efcc2 cp_parser_simple_declaration
        ../../gcc/cp/parser.c:13785
0x7159c6 cp_parser_declaration
        ../../gcc/cp/parser.c:13484
0x7160b4 cp_parser_translation_unit
        ../../gcc/cp/parser.c:4761
0x7160b4 c_parse_file()
        ../../gcc/cp/parser.c:44034
0x7de74b c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1190
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

My GCC version is
$g++ --version
g++ (GCC) 11.0.0 20200605 (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.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-07-27  7:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-22 15:01 [Bug c++/95820] New: ICE in splice_late_return_type, at cp/pt.c:29034 haoxintu at gmail dot com
2020-06-22 15:07 ` [Bug c++/95820] " haoxintu at gmail dot com
2020-06-22 15:21 ` mpolacek at gcc dot gnu.org
2020-06-24 17:05 ` mpolacek at gcc dot gnu.org
2020-06-24 18:50 ` [Bug c++/95820] [10/11 Regression] " mpolacek at gcc dot gnu.org
2020-06-24 19:47 ` mpolacek at gcc dot gnu.org
2020-06-27 14:51 ` mpolacek at gcc dot gnu.org
2020-07-14 13:42 ` cvs-commit at gcc dot gnu.org
2020-07-14 13:44 ` [Bug c++/95820] [10 " mpolacek at gcc dot gnu.org
2020-07-26 18:43 ` slyfox at gcc dot gnu.org
2020-07-27  1:06 ` mpolacek at gcc dot gnu.org
2020-07-27  7:08 ` slyfox at gcc dot gnu.org

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).