public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/101677] [11/12 Regression] Concept with use of incomplete type succeeds on GCC 10.3.0, fails on GCC 11 onward
Date: Tue, 05 Apr 2022 16:29:33 +0000	[thread overview]
Message-ID: <bug-101677-4-FgHuYEqlaQ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-101677-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:1de6612d994ada8edaab18bbc6afd8e9a57413aa

commit r12-7997-g1de6612d994ada8edaab18bbc6afd8e9a57413aa
Author: Jason Merrill <jason@redhat.com>
Date:   Sun Mar 27 22:31:51 2022 -0400

    c++: elaborated-type-spec in requires-expr [PR101677]

    We were failing to declare class S in the global namespace because we were
    treating the requires-expression parameter scope as a normal block scope,
so
    the implicit declaration went there.

    It seems to me that the requires parameter scope is more like a function
    parameter scope (not least in the use of the word "parameter"), so let's
    change the scope kind.  But then we need to adjust the prohibition on
    placeholders declaring implicit template parameters.

            PR c++/101677

    gcc/cp/ChangeLog:

            * name-lookup.h (struct cp_binding_level): Add requires_expression
            bit-field.
            * parser.cc (cp_parser_requires_expression): Set it.
            (synthesize_implicit_template_parm): Check it.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/concepts-pr67178.C: Adjust error.
            * g++.dg/cpp2a/concepts-requires28.C: New test.

  parent reply	other threads:[~2022-04-05 16:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-29 15:58 [Bug c++/101677] New: [11 " joeloser93 at gmail dot com
2021-07-30  6:13 ` [Bug c++/101677] [11/12 " rguenth at gcc dot gnu.org
2021-07-30  6:25 ` pinskia at gcc dot gnu.org
2021-07-30 15:50 ` joeloser93 at gmail dot com
2022-01-17 13:59 ` rguenth at gcc dot gnu.org
2022-04-01 19:30 ` jason at gcc dot gnu.org
2022-04-05 16:29 ` cvs-commit at gcc dot gnu.org [this message]
2022-04-12 20:14 ` [Bug c++/101677] [11 " cvs-commit at gcc dot gnu.org
2022-04-12 20:22 ` jason at gcc dot gnu.org
2023-06-09 14:36 ` ppalka 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-101677-4-FgHuYEqlaQ@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).