public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94484] New: [10 Regression] ICE in cp_finish_decl, at cp/decl.c:7447
@ 2020-04-04  7:13 asolokha at gmx dot com
  2020-04-04  9:27 ` [Bug c++/94484] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: asolokha at gmx dot com @ 2020-04-04  7:13 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94484
           Summary: [10 Regression] ICE in cp_finish_decl, at
                    cp/decl.c:7447
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: error-recovery, 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/SemaTemplate/dependent-expr.cpp from the clang 10.0.0 test suite, w/
-fconcepts or -fconcepts-ts:

void i(auto a) {
  [](auto a, int = ({decltype(a) i; i * 2;})){}(a);
}

% g++-10.0.1 -fconcepts-ts -c bdtktvea.cpp
bdtktvea.cpp: In function 'void i(auto:1)':
bdtktvea.cpp:2:34: error: non-function 'i' declared as implicit template
    2 |   [](auto a, int = ({decltype(a) i; i * 2;})){}(a);
      |                                  ^
bdtktvea.cpp:2:34: internal compiler error: in cp_finish_decl, at
cp/decl.c:7447
0x614650 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/decl.c:7447
0x9b878b cp_parser_init_declarator
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:20909
0x998b56 cp_parser_simple_declaration
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:13731
0x99a8fa cp_parser_declaration_statement
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:13163
0x99b56f cp_parser_statement
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:11469
0x99c4d8 cp_parser_statement_seq_opt
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:11835
0x99c5b8 cp_parser_compound_statement
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:11785
0x99eed8 cp_parser_statement_expr
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:4931
0x99eed8 cp_parser_primary_expression
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:5336
0x9a8487 cp_parser_postfix_expression
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:7257
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
0x98b005 cp_parser_constant_expression
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:10153
0x98b7a1 cp_parser_initializer_clause
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:23218
0x98fe5f cp_parser_initializer
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:23156
0x9b58d9 cp_parser_default_argument
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:23037
0x9b58d9 cp_parser_parameter_declaration
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:22930
0x9b600a cp_parser_parameter_declaration_list
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:22587
0x9b641c cp_parser_parameter_declaration_clause
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:22514
0x9b6e5c cp_parser_lambda_declarator_opt
       
/var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:11047

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

* [Bug c++/94484] [10 Regression] ICE in cp_finish_decl, at cp/decl.c:7447
  2020-04-04  7:13 [Bug c++/94484] New: [10 Regression] ICE in cp_finish_decl, at cp/decl.c:7447 asolokha at gmx dot com
@ 2020-04-04  9:27 ` jakub at gcc dot gnu.org
  2020-04-04  9:36 ` [Bug c++/94484] " asolokha at gmx dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-04-04  9:27 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This ICEs all the way to r6-2674-g971e17ff87337ad533b51c2dff0bbdf607fa1faf when
-fconcepts has been introduced.

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

* [Bug c++/94484] ICE in cp_finish_decl, at cp/decl.c:7447
  2020-04-04  7:13 [Bug c++/94484] New: [10 Regression] ICE in cp_finish_decl, at cp/decl.c:7447 asolokha at gmx dot com
  2020-04-04  9:27 ` [Bug c++/94484] " jakub at gcc dot gnu.org
@ 2020-04-04  9:36 ` asolokha at gmx dot com
  2020-04-04  9:42 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: asolokha at gmx dot com @ 2020-04-04  9:36 UTC (permalink / raw)
  To: gcc-bugs

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

Arseny Solokha <asolokha at gmx dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[10 Regression] ICE in      |ICE in cp_finish_decl, at
                   |cp_finish_decl, at          |cp/decl.c:7447
                   |cp/decl.c:7447              |

--- Comment #2 from Arseny Solokha <asolokha at gmx dot com> ---
Not a regression, then.

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

* [Bug c++/94484] ICE in cp_finish_decl, at cp/decl.c:7447
  2020-04-04  7:13 [Bug c++/94484] New: [10 Regression] ICE in cp_finish_decl, at cp/decl.c:7447 asolokha at gmx dot com
  2020-04-04  9:27 ` [Bug c++/94484] " jakub at gcc dot gnu.org
  2020-04-04  9:36 ` [Bug c++/94484] " asolokha at gmx dot com
@ 2020-04-04  9:42 ` marxin at gcc dot gnu.org
  2021-11-28  1:11 ` pinskia at gcc dot gnu.org
  2021-11-29 18:25 ` asolokha at gmx dot com
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-04-04  9:42 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
                 CC|                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2020-04-04

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

* [Bug c++/94484] ICE in cp_finish_decl, at cp/decl.c:7447
  2020-04-04  7:13 [Bug c++/94484] New: [10 Regression] ICE in cp_finish_decl, at cp/decl.c:7447 asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2020-04-04  9:42 ` marxin at gcc dot gnu.org
@ 2021-11-28  1:11 ` pinskia at gcc dot gnu.org
  2021-11-29 18:25 ` asolokha at gmx dot com
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-28  1:11 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2020-04-04 00:00:00         |2021-11-27

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note the ICE on the trunk is:

<source>:3:34: internal compiler error: tree check: expected var_decl or
function_decl or field_decl or type_decl or concept_decl or template_decl, have
parm_decl in push_template_decl, at cp/pt.c:6133
    3 |   [](auto a, int = ({decltype(a) i; i * 2;})){}(a);
      |                                  ^
0x20e9d19 internal_error(char const*, ...)
        ???:0

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

* [Bug c++/94484] ICE in cp_finish_decl, at cp/decl.c:7447
  2020-04-04  7:13 [Bug c++/94484] New: [10 Regression] ICE in cp_finish_decl, at cp/decl.c:7447 asolokha at gmx dot com
                   ` (3 preceding siblings ...)
  2021-11-28  1:11 ` pinskia at gcc dot gnu.org
@ 2021-11-29 18:25 ` asolokha at gmx dot com
  4 siblings, 0 replies; 6+ messages in thread
From: asolokha at gmx dot com @ 2021-11-29 18:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Arseny Solokha <asolokha at gmx dot com> ---
*** Bug 97671 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2021-11-29 18:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-04  7:13 [Bug c++/94484] New: [10 Regression] ICE in cp_finish_decl, at cp/decl.c:7447 asolokha at gmx dot com
2020-04-04  9:27 ` [Bug c++/94484] " jakub at gcc dot gnu.org
2020-04-04  9:36 ` [Bug c++/94484] " asolokha at gmx dot com
2020-04-04  9:42 ` marxin at gcc dot gnu.org
2021-11-28  1:11 ` pinskia at gcc dot gnu.org
2021-11-29 18:25 ` asolokha at gmx dot com

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