🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1161

static member of a template

#1161
From: Conceicao Batista Tavares
Date: Tue, 22 Dec 1992 12:34
32 lines
1324 bytes
When I try to compile the following program I get an error,
and I don't know if it is g++ bug. I think that sintax it's OK.

Does anyone knows what is happening?

Exemple-----------------------------------------

template<class T> class A {
 static int a;
}

template<class T> int A<T>::a;

main() {
}

-------------------------------------------------

And the error is:--------------------------------

sorry, not implemented: non-function templates not yet supported

-------------------------------------------------

Thanks

SAO
--
<> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> 
<> Programs don't |        Sao Tavares                         <>        
<> run, just walk |   E-mail: cbt@yosemite.inesc.pt            <>      
<> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <>
Technical Details
Message-ID: <CBT.92Dec22123452@hobbes.inesc.pt>
Path: arc1-ca.pugleaf.net!sparky!uunet!news.gtech.com!noc.near.net!hri.com!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!hobbes.inesc.pt!cbt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!news.gtech.com!noc.near.net!hri.com!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!hobbes.inesc.pt!cbt
From: cbt@hobbes.inesc.pt (Conceicao Batista Tavares)
Newsgroups: gnu.g++.bug
Subject: static member of a template
Message-ID: <CBT.92Dec22123452@hobbes.inesc.pt>
Date: 22 Dec 92 12:34:52 GMT
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: INESC, Lisboa Portugal
Lines: 32
Approved: bug-g++@prep.ai.mit.edu