Another template/namespace problem

Manuel Menezes de Sequeira mms@torga.iscte.pt
Mon May 24 08:15:00 GMT 1999


Thanks for your answers.  Now I have another
problem.

Code:

    namespace N {
        template <class T> void g() {}
    }
    void (*pf)() = N::g<int>;

Compiler version (installed via RPM):
    egcs-2.91.66

OS: 
    RedHat linux 6.0 (kernel-2.2.5-15)

Compile command: 
    g++ -C whatever.C

Result of compilation:
    whatever.C:105: Internal compiler error 373.
    whatever.C:105: Please submit a full bug report to
`egcs-bugs@egcs.cygnus.com'.
    whatever.C:105: See <URL:
http://egcs.cygnus.com/faq.html#bugreport >
for details.

The problem goes away if namespace N is removed or
if the template is turned into a non-template.

--
Manuel Menezes de Sequeira              Manuel.Sequeira@iscte.pt
Tel: +351.1.7903909                     Mobile: +351.936.2337428
Fax: +351.1.7903099             URL: http://torga.iscte.pt/~mms/
Gab. 9, DCTI, ISCTE,  Av. Forças Armadas,  1600 LISBOA, Portugal


More information about the Gcc-bugs mailing list