Another template/namespace problem

Manuel Menezes de Sequeira
Mon May 24 08:15:00 GMT 1999

Thanks for your answers.  Now I have another


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

Compiler version (installed via RPM):

    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
    whatever.C:105: See <URL: >
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    
Tel: +351.1.7903909                     Mobile: +351.936.2337428
Fax: +351.1.7903099             URL:
Gab. 9, DCTI, ISCTE,  Av. Forças Armadas,  1600 LISBOA, Portugal

More information about the Gcc-bugs mailing list