public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/113830] GCC accepts invalid code when instantiating the local class inside a function
Date: Thu, 08 Feb 2024 13:01:45 +0000	[thread overview]
Message-ID: <bug-113830-4-3nsj6RF986@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-113830-4@http.gcc.gnu.org/bugzilla/>

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2024-02-08
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Bo Wang from comment #0)
> It appears that if a template function has an internally defined local class
> that uses a dependent name in its member function, it can cause the
> compiler's name-binding process to get into trouble.

Or GCC just doesn't check the default argument because it's not used?

  reply	other threads:[~2024-02-08 13:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-08 12:41 [Bug c++/113830] New: " wangbopku15 at gmail dot com
2024-02-08 13:01 ` redi at gcc dot gnu.org [this message]
2024-02-08 13:08 ` [Bug c++/113830] " mpolacek at gcc dot gnu.org
2024-02-08 13:24 ` wangbopku15 at gmail dot com
2024-02-08 13:38 ` wangbopku15 at gmail dot com
2024-02-08 13:42 ` jakub at gcc dot gnu.org
2024-02-08 13:53 ` mpolacek at gcc dot gnu.org
2024-02-08 14:14 ` wangbopku15 at gmail dot com
2024-02-08 15:01 ` redi at gcc dot gnu.org
2024-02-08 15:10 ` wangbopku15 at gmail dot com
2024-02-08 15:36 ` jakub at gcc dot gnu.org
2024-02-08 19:08 ` wangbopku15 at gmail dot com
2024-02-08 19:47 ` harald at gigawatt dot nl
2024-02-09  2:44 ` wangbopku15 at gmail dot com
2024-02-09  9:26 ` harald at gigawatt dot nl

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-113830-4-3nsj6RF986@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).