public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7768: __PRETTY_FUNCTION__ for template destructor is wrong
@ 2002-09-13 13:41 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2002-09-13 13:41 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, llib, nobody
Synopsis: __PRETTY_FUNCTION__ for template destructor is wrong
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 13:41:11 2002
State-Changed-Why:
confirmed
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7768
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/7768: __PRETTY_FUNCTION__ for template destructor is wrong
@ 2002-09-14 16:24 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2002-09-14 16:24 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, llib, nathan
Synopsis: __PRETTY_FUNCTION__ for template destructor is wrong
State-Changed-From-To: analyzed->closed
State-Changed-By: nathan
State-Changed-When: Sat Sep 14 16:24:31 2002
State-Changed-Why:
2002-09-14 Nathan Sidwell <nathan@codesourcery.com>
PR c++/7768
* pt.c (build_template_decl): Copy DECL_DESTRUCTOR_P.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7768
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/7768: __PRETTY_FUNCTION__ for template destructor is wrong
@ 2002-09-14 12:17 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2002-09-14 12:17 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, llib, nathan, nobody
Synopsis: __PRETTY_FUNCTION__ for template destructor is wrong
Responsible-Changed-From-To: unassigned->nathan
Responsible-Changed-By: nathan
Responsible-Changed-When: Sat Sep 14 12:17:02 2002
Responsible-Changed-Why:
patching
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7768
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/7768: __PRETTY_FUNCTION__ for template destructor is wrong
@ 2002-08-29 19:36 llib
0 siblings, 0 replies; 4+ messages in thread
From: llib @ 2002-08-29 19:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 7768
>Category: c++
>Synopsis: __PRETTY_FUNCTION__ for template destructor is wrong
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 29 18:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Bill Clarke
>Release: 3.1.1
>Organization:
Australian National University
>Environment:
System: SunOS bullet 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: ../gcc-3.1.1/configure --with-cpu=ultrasparc --enable-lanaguages=c,c++,f77 : (reconfigured) ../gcc-3.1.1/configure --with-cpu=ultrasparc --enable-languages=c,c++,f77
>Description:
__PRETTY_FUNCTION__ in a destructor of a template looks like a constructor
that returns void and takes no args:
e.g., this code:
// begins
#include <iostream>
template <typename T>
struct X {
X() { std::cout << __PRETTY_FUNCTION__ << std::endl; }
~X() { std::cout << __PRETTY_FUNCTION__ << std::endl; }
};
int main() {
{ X<int> x;
}
return 0;
}
// ends
when compiled and executed produces:
X<T>::X() [with T = int]
void X<T>::X() [with T = int]
>How-To-Repeat:
compile and run above code with g++
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-09-14 23:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-13 13:41 c++/7768: __PRETTY_FUNCTION__ for template destructor is wrong nathan
-- strict thread matches above, loose matches on Subject: below --
2002-09-14 16:24 nathan
2002-09-14 12:17 nathan
2002-08-29 19:36 llib
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).