public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102433] New: [11/12 Regression] ICE in ~saved_token_sentinel, at cp/parser.c:1293
@ 2021-09-21 19:19 gscfq@t-online.de
  2021-09-22  6:58 ` [Bug c++/102433] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2021-09-21 19:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102433
           Summary: [11/12 Regression] ICE in ~saved_token_sentinel, at
                    cp/parser.c:1293
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started between 20210404 and 20210411 :
(gcc configured with --enable-checking=yes)


$ cat z1.cc
void f ()
{
  #pragma omp task depend(in:this)
  ;
}


$ g++-12-20210919 -c z1.cc -fopenmp
z1.cc: In function 'void f()':
z1.cc:3:29: error: invalid use of 'this' in non-member function
    3 |   #pragma omp task depend(in:this)
      |                             ^
z1.cc:4:3: internal compiler error: in ~saved_token_sentinel, at
cp/parser.c:1293
    4 |   ;
      |   ^
0x8f2770 saved_token_sentinel::~saved_token_sentinel()
        ../../gcc/cp/parser.c:1293
0x8f2770 cp_parser_statement
        ../../gcc/cp/parser.c:12062
0x8f2894 cp_parser_statement_seq_opt
        ../../gcc/cp/parser.c:12713
0x8f2977 cp_parser_compound_statement
        ../../gcc/cp/parser.c:12662
0x9182f0 cp_parser_function_body
        ../../gcc/cp/parser.c:24893
0x9182f0 cp_parser_ctor_initializer_opt_and_function_body
        ../../gcc/cp/parser.c:24944
0x91896a cp_parser_function_definition_after_declarator
        ../../gcc/cp/parser.c:31066
0x919be4 cp_parser_function_definition_from_specifiers_and_declarator
        ../../gcc/cp/parser.c:30982
0x919be4 cp_parser_init_declarator
        ../../gcc/cp/parser.c:22427
0x8ef1c2 cp_parser_simple_declaration
        ../../gcc/cp/parser.c:15133
0x920d5e cp_parser_declaration
        ../../gcc/cp/parser.c:14819
0x921985 cp_parser_translation_unit
        ../../gcc/cp/parser.c:4978
0x921985 c_parse_file()
        ../../gcc/cp/parser.c:47694
0xaa4682 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1236

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

end of thread, other threads:[~2023-05-29 10:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-21 19:19 [Bug c++/102433] New: [11/12 Regression] ICE in ~saved_token_sentinel, at cp/parser.c:1293 gscfq@t-online.de
2021-09-22  6:58 ` [Bug c++/102433] " rguenth at gcc dot gnu.org
2021-09-27 13:19 ` [Bug c++/102433] [11/12 Regression] ICE in ~saved_token_sentinel, at cp/parser.c:1293 since r11-8118-g82198676c80764ca marxin at gcc dot gnu.org
2022-01-20  9:54 ` rguenth at gcc dot gnu.org
2022-04-21  7:50 ` rguenth at gcc dot gnu.org
2023-05-29 10:05 ` [Bug c++/102433] [11/12/13/14 " 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).