public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98072] New: [11 Regression] ICE in cp_parser_omp_var_list_no_open, at cp/parser.c:34843
@ 2020-12-01  2:43 asolokha at gmx dot com
  2020-12-01  8:22 ` [Bug c++/98072] " rguenth at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: asolokha at gmx dot com @ 2020-12-01  2:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98072
           Summary: [11 Regression] ICE in cp_parser_omp_var_list_no_open,
                    at cp/parser.c:34843
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, openmp
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

g++-11.0.0-alpha20201129 snapshot (g:bb67ad5cff58a707aaae645d4f45a913d8511c86)
ICEs when compiling the following testcase, reduced from
test/OpenMP/depobj_ast_print.cpp from the clang 11.0.0 test suite, w/ -fopenmp:

void
dh (int *vp, int pm, int ca)
{
#pragma omp depobj (pm) depend (iterator (ca = 0 : *vp), in: vp[ca])
    ;
}

% g++-11.0.0 -fopenmp -c wmttbiko.cpp
wmttbiko.cpp: In function 'void dh(int*, int, int)':
wmttbiko.cpp:4:65: internal compiler error: in cp_parser_omp_var_list_no_open,
at cp/parser.c:34843
    4 | #pragma omp depobj (pm) depend (iterator (ca = 0 : *vp), in: vp[ca])
      |                                                                 ^~
0x9e4b1b cp_parser_omp_var_list_no_open
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:34843
0x9ec406 cp_parser_omp_clause_depend
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:37177
0x9d9540 cp_parser_omp_depobj
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:38787
0x9d9540 cp_parser_pragma
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:44282
0x9dfd68 cp_parser_statement
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:11561
0x9e0aed cp_parser_statement_seq_opt
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:11953
0x9e0bc8 cp_parser_compound_statement
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:11903
0x9fac64 cp_parser_function_body
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:23570
0x9fac64 cp_parser_ctor_initializer_opt_and_function_body
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:23621
0x9ff719 cp_parser_function_definition_after_declarator
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:29511
0xa00ab9 cp_parser_function_definition_from_specifiers_and_declarator
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:29427
0xa00ab9 cp_parser_init_declarator
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:21143
0x9ddaf7 cp_parser_simple_declaration
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:13963
0xa0aaa4 cp_parser_declaration
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:13660
0xa0b450 cp_parser_translation_unit
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:4806
0xa0b450 c_parse_file()
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/cp/parser.c:44630
0xb3082d c_common_parse_file()
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/c-family/c-opts.c:1198

The failing assert has been introduced in
g:c0c7270cc4efd896fe99f8ad5409dbef089a407f.

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

end of thread, other threads:[~2021-04-22 13:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01  2:43 [Bug c++/98072] New: [11 Regression] ICE in cp_parser_omp_var_list_no_open, at cp/parser.c:34843 asolokha at gmx dot com
2020-12-01  8:22 ` [Bug c++/98072] " rguenth at gcc dot gnu.org
2020-12-01  9:33 ` [Bug c++/98072] [9/10/11 " jakub at gcc dot gnu.org
2020-12-01  9:42 ` jakub at gcc dot gnu.org
2020-12-01 10:33 ` tschwinge at gcc dot gnu.org
2020-12-01 20:46 ` cvs-commit at gcc dot gnu.org
2020-12-02 18:11 ` [Bug c++/98072] [9/10 " jakub at gcc dot gnu.org
2021-01-06  9:39 ` cvs-commit at gcc dot gnu.org
2021-01-06  9:43 ` [Bug c++/98072] [9 " jakub at gcc dot gnu.org
2021-04-20 23:30 ` cvs-commit at gcc dot gnu.org
2021-04-22 13:27 ` jakub 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).