typedef-named class member functions can be public

Alexandre Oliva aoliva@redhat.com
Sat Jul 6 09:38:00 GMT 2002


On Jul  5, 2002, Alexandre Oliva <aoliva@redhat.com> wrote:

> Whereas for non-inline functions, it appears to me that my patch
> would at least be an improvement over what we have now, even if it
> might still cause problems in corner cases.

Except that it only fixes the name in the translation unit that gets
the definition, whereas all others still try to reference the
incorrect name.  Oops.  Nevermind.  Nothing like a good testcase to
verify that a patch actually fixes a problem :-)

Here's the testcase I've just checked in.  I used g++.old-deja because
I don't know how to do multi-translation-unit tests with g++.dg.  Does
anyone?

I've filed a gnats bug report too.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cp-linkage-of-typedef-class-test.patch
Type: text/x-patch
Size: 1735 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20020706/d57825db/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


More information about the Gcc-patches mailing list