public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94161] New: Implement DR 228: Use of template keyword with non-member templates
@ 2020-03-12 23:26 mpolacek at gcc dot gnu.org
  2020-03-12 23:26 ` [Bug c++/94161] " mpolacek at gcc dot gnu.org
  2020-10-17 19:39 ` mpolacek at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-03-12 23:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94161
           Summary: Implement DR 228: Use of template keyword with
                    non-member templates
           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: ---

This should compile:

template<typename T>
struct X {
    void f(); 
};

template<typename T>
struct Y {
  void g(X<T> x) {
    x.template X<T>::f();
  }
};

Since the DR says that the name prefixed by 'template' doesn't have to be a
member template.

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

* [Bug c++/94161] Implement DR 228: Use of template keyword with non-member templates
  2020-03-12 23:26 [Bug c++/94161] New: Implement DR 228: Use of template keyword with non-member templates mpolacek at gcc dot gnu.org
@ 2020-03-12 23:26 ` mpolacek at gcc dot gnu.org
  2020-10-17 19:39 ` mpolacek at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-03-12 23:26 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

* [Bug c++/94161] Implement DR 228: Use of template keyword with non-member templates
  2020-03-12 23:26 [Bug c++/94161] New: Implement DR 228: Use of template keyword with non-member templates mpolacek at gcc dot gnu.org
  2020-03-12 23:26 ` [Bug c++/94161] " mpolacek at gcc dot gnu.org
@ 2020-10-17 19:39 ` mpolacek at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-10-17 19:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This compiles since r11-86.

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

end of thread, other threads:[~2020-10-17 19:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-12 23:26 [Bug c++/94161] New: Implement DR 228: Use of template keyword with non-member templates mpolacek at gcc dot gnu.org
2020-03-12 23:26 ` [Bug c++/94161] " mpolacek at gcc dot gnu.org
2020-10-17 19:39 ` 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).