home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / 17909 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  1.4 KB

  1. Path: sparky!uunet!gatech!news.ans.net!cmcl2!adm!news
  2. From: philip@concave.cs.wits.ac.za (Philip Machanick)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Cfront 3.0.1 bug?
  5. Message-ID: <34594@adm.brl.mil>
  6. Date: 12 Dec 92 13:58:21 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 31
  9.  
  10. I just tried to compile a program that cfront 2 compiled.
  11.  
  12. I have a virtual function that is called via an element of an array
  13. of objects. It is quite a complex situation because the array is
  14. 3-dimensional and implemented via classes (overloading "[]") rather
  15. than a "C"-style 3-D array.
  16.  
  17. Cfront 3.0.1 generates a direct call to the function without going
  18. via the virtual function pointer and also neglects to insert the
  19. "this" pointer.
  20.  
  21. Only when the resulting mangled code gets through to the C compiler
  22. is an error reported:
  23.  
  24.   accom: Error: M_particle.u, line 51: Actual parameters count 0 while
  25. formal parameter count is 1
  26.  
  27. This looks like a bug to me.
  28.  
  29. Anyone encountered something similar?
  30.  
  31. (I can supply the source and cfront 2 and 3 output by mail on request -
  32. probably not of general interest.)
  33.  
  34. Is there a bug report procedure if not on maintenance? Is there such a
  35. thing as a bug on warantee repair? (Luckily the -v2 flag allows me to
  36. revert to cfront 2.)
  37. --
  38. Philip Machanick
  39. Computer Science Dept, Univ of the Witwatersrand, 2050 Wits, South Africa
  40. philip@concave.cs.wits.ac.za  phone: 27 (11) 716-3759  fax: 339-7965
  41.