public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/34810] accepts invalid dependent(?) type in template class method Date: Tue, 07 Dec 2021 02:22:06 +0000 [thread overview] Message-ID: <bug-34810-4-rFu7vX2T0B@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-34810-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34810 --- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Oh this: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#318 In a lookup in which the constructor is an acceptable lookup result, if the nested-name-specifier nominates a class C and the name specified after the nested-name-specifier, when looked up in C, is the injected class name of C (clause Clause 11 [class]), the name is instead considered to name the constructor of class C. [Note: For example, the constructor is not an acceptable lookup result in an elaborated type specifier so the constructor would not be used in place of the injected class name.] So the question becomes is typename is enough here.
next prev parent reply other threads:[~2021-12-07 2:22 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-34810-4@http.gcc.gnu.org/bugzilla/> 2021-08-11 21:51 ` pinskia at gcc dot gnu.org 2021-12-07 1:48 ` pinskia at gcc dot gnu.org 2021-12-07 1:49 ` pinskia at gcc dot gnu.org 2021-12-07 1:51 ` pinskia at gcc dot gnu.org 2021-12-07 1:57 ` pinskia at gcc dot gnu.org 2021-12-07 2:03 ` pinskia at gcc dot gnu.org 2021-12-07 2:04 ` pinskia at gcc dot gnu.org 2021-12-07 2:22 ` pinskia at gcc dot gnu.org [this message] 2021-12-07 2:55 ` pinskia at gcc dot gnu.org 2021-12-07 3:31 ` [Bug c++/34810] [DR1310] accepts invalid dependent " pinskia at gcc dot gnu.org 2021-12-09 5:59 ` pinskia at gcc dot gnu.org 2008-01-16 12:27 [Bug c++/34810] New: G++ accepts wrong code v dot haisman at sh dot cvut dot cz 2008-01-16 13:33 ` [Bug c++/34810] accepts invalid dependent(?) type in template class method rguenth at gcc dot gnu dot org 2008-01-16 15:25 ` pinskia at gcc dot gnu dot 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-34810-4-rFu7vX2T0B@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: linkBe 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).