g++ 2.95.2/AIX 4.3 fails to implicitly instantiate explicitly initialized static POD data of a class template

Geoff Keating geoffk@cygnus.com
Tue Aug 15 20:34:00 GMT 2000


Martin Sebor <sebor@roguewave.com> writes:

> Hi,
> 
> g++ 2.95.2 doesn't implicitly instantiate S<char>::b below on IBM AIX
> 4.3 and DEC OSF1 5.0. Removing the explicit initializer or explicitly
> instantiating the template works. I have reported this issue separately
> for g++ on DEC OSF (Tru64) but I don't think it ever made it into GNATS,
> nor did I receive a response, but I guess that's because g++ is not
> supported on Tru64.

This is tested for by the G++ testsuite, and to the best of my
knowledge has never worked in g++ on AIX.  I wouldn't mind knowing how
to fix it, but I don't know how it should work in a COFF environment.
-- 
- Geoffrey Keating <geoffk@cygnus.com>


More information about the Gcc-bugs mailing list