home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / g / bug / 2071 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.3 KB  |  45 lines

  1. Path: 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
  2. From: cbt@hobbes.inesc.pt (Conceicao Batista Tavares)
  3. Newsgroups: gnu.g++.bug
  4. Subject: static member of a template
  5. Message-ID: <CBT.92Dec22123452@hobbes.inesc.pt>
  6. Date: 22 Dec 92 12:34:52 GMT
  7. Sender: gnulists@ai.mit.edu
  8. Distribution: gnu
  9. Organization: INESC, Lisboa Portugal
  10. Lines: 32
  11. Approved: bug-g++@prep.ai.mit.edu
  12.  
  13. When I try to compile the following program I get an error,
  14. and I don't know if it is g++ bug. I think that sintax it's OK.
  15.  
  16. Does anyone knows what is happening?
  17.  
  18. Exemple-----------------------------------------
  19.  
  20. template<class T> class A {
  21.  static int a;
  22. }
  23.  
  24. template<class T> int A<T>::a;
  25.  
  26. main() {
  27. }
  28.  
  29. -------------------------------------------------
  30.  
  31. And the error is:--------------------------------
  32.  
  33. sorry, not implemented: non-function templates not yet supported
  34.  
  35. -------------------------------------------------
  36.  
  37. Thanks
  38.  
  39. SAO
  40. --
  41. <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> 
  42. <> Programs don't |        Sao Tavares                         <>        
  43. <> run, just walk |   E-mail: cbt@yosemite.inesc.pt            <>      
  44. <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <>
  45.