This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Testcase for new C++ bug? Comments please.
- To: Klaus-Georg dot Adams at chemie dot uni-karlsruhe dot de
- Subject: Re: PATCH: Testcase for new C++ bug? Comments please.
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Fri, 3 Jul 1998 20:44:43 +0200
- CC: carlo at runaway dot xs4all dot nl, egcs at cygnus dot com
- References: <199807031013.MAA17931@achibm5.chemie.uni-karlsruhe.de>
> Note: I don't know the internals of gcc, but if it can check for
> private ctor and dtors, it could just as well check for static public
> functions returning an object of the offending class.
If it gets fixed, it should get fixed for good. So if you don't
complain in this case, somebody will write a class that has a static
function with a static variable, but does not return this variable;
and it will be a meaningful application.
The tricky part is not to implement some criterion, but to come up
with a good one.
Martin