public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16630] New: missing type name in __PRETTY_FUNCTION__
@ 2004-07-19 17:13 sebor at roguewave dot com
  2004-07-19 17:26 ` [Bug c++/16630] " bangerth at dealii dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: sebor at roguewave dot com @ 2004-07-19 17:13 UTC (permalink / raw)
  To: gcc-bugs

When compiled with g++ 3.4, the program below produces the following output:
    const char* D<U>::foo(typename B<T>::X) [with U = int]

Note that the type T the function argument depends on is not shown. The
expected output (e.g., when compiled with EDG eccp or HP aCC) is something
like:
    const char *D<U>::foo(B<U>::X) [with U = int]

extern "C" int printf (const char*, ...);

template <class T>
struct B { typedef T X; };

template <class U>
struct D
{
    const char* foo (typename B<U>::X) { return __PRETTY_FUNCTION__; }
};

int main ()
{
    printf ("%s\n", D<int>().foo (0));
}

-- 
           Summary: missing type name in __PRETTY_FUNCTION__
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sebor at roguewave dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: all
  GCC host triplet: all
GCC target triplet: all


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


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

end of thread, other threads:[~2010-07-04 18:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-16630-1186@http.gcc.gnu.org/bugzilla/>
2010-06-05 20:13 ` [Bug c++/16630] missing type name in __PRETTY_FUNCTION__ gcc-bugzilla at contacts dot eelis dot net
2010-06-05 23:40 ` redi at gcc dot gnu dot org
2010-06-05 23:48 ` manu at gcc dot gnu dot org
2010-06-06 11:17 ` redi at gcc dot gnu dot org
2010-06-13 12:46 ` manu at gcc dot gnu dot org
2010-07-04 18:17 ` manu at gcc dot gnu dot org
2010-07-04 18:20 ` manu at gcc dot gnu dot org
2004-07-19 17:13 [Bug c++/16630] New: " sebor at roguewave dot com
2004-07-19 17:26 ` [Bug c++/16630] " bangerth at dealii dot org
2004-07-19 18:40 ` pinskia at gcc dot gnu dot org
2004-07-19 18:44 ` bangerth at dealii dot org
2004-07-19 18:47 ` pinskia at gcc dot gnu dot org
2004-07-19 18:59 ` bangerth at dealii dot 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).