public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39813]  New: [feature request] __PRETTY_FUNCTION__ addition
@ 2009-04-19 11:27 gcc at daryl dot haresign dot com
  2009-12-29 14:55 ` [Bug c++/39813] " gcc at daryl dot haresign dot com
  0 siblings, 1 reply; 13+ messages in thread
From: gcc at daryl dot haresign dot com @ 2009-04-19 11:27 UTC (permalink / raw)
  To: gcc-bugs

Given the following code:
  template <typename T>
  struct A
  {
    void fn() { cout << __PRETTY_FUNCTION__ << endl; }
  };

  struct B
  {
    template <typename T>
    void fn() { cout << __PRETTY_FUNCTION__ << endl; }
  };

  int main()
  {
    A<int>().fn();
    B().fn<int>();
  }

g++ outputs:
  void A<T>::fn() [with T = int]
  void B::fn() [with T = int]

I think that the latter should output:
  void B::fn<T>() [with T = int]


-- 
           Summary: [feature request] __PRETTY_FUNCTION__ addition
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc at daryl dot haresign dot com


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


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

end of thread, other threads:[~2015-04-27 22:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-39813-4@http.gcc.gnu.org/bugzilla/>
2011-09-29  0:00 ` [Bug c++/39813] [feature request] __PRETTY_FUNCTION__ addition paolo.carlini at oracle dot com
2011-09-29 15:46   ` Joseph S. Myers
2011-09-29 15:48     ` Joseph S. Myers
2011-09-29 15:48 ` paolo.carlini at oracle dot com
2011-09-29 15:48 ` joseph at codesourcery dot com
2011-09-29 15:51 ` joseph at codesourcery dot com
2011-09-29 15:58 ` paolo.carlini at oracle dot com
2011-09-29 16:54 ` LpSolit at netscape dot net
2011-09-29 17:03 ` joseph at codesourcery dot com
2011-09-29 17:15 ` redi at gcc dot gnu.org
2012-08-18 18:58 ` [Bug c++/39813] improve __PRETTY_FUNCTION__ for templated methos lundberj at gmail dot com
2015-04-27 22:27 ` [Bug c++/39813] improve __PRETTY_FUNCTION__ for templated methods paolo.carlini at oracle dot com
2009-04-19 11:27 [Bug c++/39813] New: [feature request] __PRETTY_FUNCTION__ addition gcc at daryl dot haresign dot com
2009-12-29 14:55 ` [Bug c++/39813] " gcc at daryl dot haresign 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).