home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13232 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.1 KB  |  37 lines

  1. Path: sparky!uunet!olivea!hal.com!hal!brennan
  2. From: brennan@hal.com (Dave Brennan)
  3. Newsgroups: comp.lang.c++
  4. Subject: Why is cfront to stupid to compile this?
  5. Message-ID: <BRENNAN.92Sep2172940@yosemite.hal.com>
  6. Date: 2 Sep 92 23:29:40 GMT
  7. Organization: HaL Computer Systems, Austin, TX
  8. Lines: 26
  9. NNTP-Posting-Host: yosemite.hal.com
  10.  
  11. Attempting to compile this with cfront 2.1.03 08/31/90 reports:
  12.  
  13. "foo.cc", line 8: error:  foo::operator delete() declared with 
  14.           external linkage and called before defined as inline
  15. Compilation failed
  16.  
  17. class foo
  18. {
  19.   static void operator delete (void *);
  20. };
  21.  
  22.  
  23. inline void
  24. foo::operator delete (void *)
  25. {
  26. }
  27.  
  28. Why, why, why??  This is just plain stoopid.  Why does cfront think that
  29. declaring a class results in an inline call to the destructor?  Other
  30. compilers can handle this.  Who can I report cfront problems to anyhow?
  31.  
  32. --
  33. Dave Brennan                                      HaL Computer Systems
  34. brennan@hal.com                                         (512) 794-2855
  35.  
  36. Visit the Emacs Lisp Archive: archive.cis.ohio-state.edu:pub/gnu/emacs
  37.