public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94415] New: Implement DR 2237:  Can a template-id name a constructor?
@ 2020-03-30 23:16 mpolacek at gcc dot gnu.org
  2020-03-30 23:17 ` [Bug c++/94415] " mpolacek at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-03-30 23:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94415
           Summary: Implement DR 2237:  Can a template-id name a
                    constructor?
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

Implement <https://eel.is/c++draft/diff.cpp17.class#2>:

template<class T>
struct A {
  A<T>();           // error: simple-template-id not allowed for constructor
  A(int);           // OK, injected-class-name used
  ~A<T>();          // error: simple-template-id not allowed for destructor
};

Note this is not a DR against C++17, the above is only ill-formed in C++20
onwards.

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

* [Bug c++/94415] Implement DR 2237:  Can a template-id name a constructor?
  2020-03-30 23:16 [Bug c++/94415] New: Implement DR 2237: Can a template-id name a constructor? mpolacek at gcc dot gnu.org
@ 2020-03-30 23:17 ` mpolacek at gcc dot gnu.org
  2020-04-04 23:33 ` mpolacek at gcc dot gnu.org
  2020-07-14 19:15 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-03-30 23:17 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2020-03-30
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1
           Keywords|                            |accepts-invalid

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

* [Bug c++/94415] Implement DR 2237: Can a template-id name a constructor?
  2020-03-30 23:16 [Bug c++/94415] New: Implement DR 2237: Can a template-id name a constructor? mpolacek at gcc dot gnu.org
  2020-03-30 23:17 ` [Bug c++/94415] " mpolacek at gcc dot gnu.org
@ 2020-04-04 23:33 ` mpolacek at gcc dot gnu.org
  2020-07-14 19:15 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-04-04 23:33 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Patch posted:
<https://gcc.gnu.org/pipermail/gcc-patches/2020-April/543301.html>

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

* [Bug c++/94415] Implement DR 2237: Can a template-id name a constructor?
  2020-03-30 23:16 [Bug c++/94415] New: Implement DR 2237: Can a template-id name a constructor? mpolacek at gcc dot gnu.org
  2020-03-30 23:17 ` [Bug c++/94415] " mpolacek at gcc dot gnu.org
  2020-04-04 23:33 ` mpolacek at gcc dot gnu.org
@ 2020-07-14 19:15 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-07-14 19:15 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed in r11-532-g4b38d56dbac6742b038551a36ec80200313123a1.

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

end of thread, other threads:[~2020-07-14 19:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30 23:16 [Bug c++/94415] New: Implement DR 2237: Can a template-id name a constructor? mpolacek at gcc dot gnu.org
2020-03-30 23:17 ` [Bug c++/94415] " mpolacek at gcc dot gnu.org
2020-04-04 23:33 ` mpolacek at gcc dot gnu.org
2020-07-14 19:15 ` mpolacek 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).