public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/102433] New: [11/12 Regression] ICE in ~saved_token_sentinel, at cp/parser.c:1293
Date: Tue, 21 Sep 2021 19:19:12 +0000	[thread overview]
Message-ID: <bug-102433-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             reply	other threads:[~2021-09-21 19:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-21 19:19 gscfq@t-online.de [this message]
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

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-102433-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: link
Be 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).