public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55588] New: Failure to diagnose non-template-id prefixed by keyword template
@ 2012-12-04  9:06 redi at gcc dot gnu.org
  2012-12-04  9:14 ` [Bug c++/55588] " redi at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2012-12-04  9:06 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55588

             Bug #: 55588
           Summary: Failure to diagnose non-template-id prefixed by
                    keyword template
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org


This example is taken from 14.2 [temp.names] p5

template <class T> struct A {
  void f(int);
  template <class U> void f(U);
};
template <class T> void f(T t) {
  A<T> a;
  a.template f<>(t);  // OK: calls template
  a.template f(t);    // error: not a template-id
}

G++ compiles it without error (as does Clang++, but not Comeau online)


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

end of thread, other threads:[~2024-01-13 23:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-04  9:06 [Bug c++/55588] New: Failure to diagnose non-template-id prefixed by keyword template redi at gcc dot gnu.org
2012-12-04  9:14 ` [Bug c++/55588] " redi at gcc dot gnu.org
2013-10-20 14:09 ` ville.voutilainen at gmail dot com
2020-04-11 15:16 ` mpolacek at gcc dot gnu.org
2021-08-23  8:12 ` pinskia at gcc dot gnu.org
2021-08-23  8:12 ` pinskia at gcc dot gnu.org
2021-08-23  8:12 ` pinskia at gcc dot gnu.org
2024-01-13 23:25 ` pinskia 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).