public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50828] New: class template parameter not printed for member function template in candidate list
@ 2011-10-22 13:20 redi at gcc dot gnu.org
  2011-10-22 13:29 ` [Bug c++/50828] " redi at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2011-10-22 13:20 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50828
           Summary: class template parameter not printed for member
                    function template in candidate list
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org


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

int main() {
  A<void> a;
  a.f(0);
}

With -fpretty-templates this gives:

f.C: In function ‘int main()’:
f.C:9:8: error: no matching function for call to ‘A<void>::f(int)’
f.C:9:8: note: candidate is:
f.C:4:12: note: template<class U> void A::f() [with U = U, T = void]

T is shown in the argument list, but not the signature. It should be:

f.C:4:12: note: template<class U> void A<T>::f() [with U = U, T = void]
                                        ^^^

For a non-template member function the class template parameter is shown
correctly.


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

end of thread, other threads:[~2012-09-24 16:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-22 13:20 [Bug c++/50828] New: class template parameter not printed for member function template in candidate list redi at gcc dot gnu.org
2011-10-22 13:29 ` [Bug c++/50828] " redi at gcc dot gnu.org
2011-10-22 21:40 ` paolo.carlini at oracle dot com
2011-10-22 22:01 ` redi at gcc dot gnu.org
2011-10-22 23:39 ` paolo.carlini at oracle dot com
2011-10-23 19:14 ` paolo.carlini at oracle dot com
2012-09-24 16:57 ` paolo at gcc dot gnu.org
2012-09-24 16:59 ` paolo.carlini at oracle dot com

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).