home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19821 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!bogus.sura.net!darwin.sura.net!newsserver.jvnc.net!netnews.upenn.edu!netnews.cc.lehigh.edu!ns1.cc.lehigh.edu!sg0d
  2. From: sg0d@ns1.cc.lehigh.edu (STEPHEN R. GILBERT)
  3. Newsgroups: comp.lang.c++
  4. Subject: Possible bug in BC 3.1: ellipsis in proto argument list
  5. Message-ID: <1993Jan24.050155.32517@ns1.cc.lehigh.edu>
  6. Date: 24 Jan 93 05:01:55 GMT
  7. Organization: Lehigh University
  8. Lines: 38
  9.  
  10. Forgive me if this is a FAQ (probably isn't) or if this question has
  11. been asked before.
  12.  
  13. I seem to have found a bug in my Borland C++ 3.1 compiler.  I narrowed
  14. the problem down to the following prototype:
  15.  
  16. void foo(...)
  17.  
  18. If the above line is by itself in foo.h and I run:
  19. bcc -P -c foo.h
  20. It compiles without mishap.  If you're wondering: -P is to force a C++
  21. compile and -c is compile to .obj only.
  22.  
  23. The problem is that if I try to compile without the -P, that is,
  24. compile in regular, standard BC 3.1, I get the error message:
  25. ) expected
  26.  
  27. This is no big deal- I can just compile with the C++ option all the
  28. time, but regular BC should be able to compile a prototype with just
  29. an ellipsis in the argument list without a problem- I think.  I guess
  30. my real question is: Does BC 3.1 have a bug?  My bcc.exe is dated
  31. 6-10-92 at 03:10a.  If there is a patch floating around somewhere
  32. could someone let me know where to ftp it from.  I checked simtel20
  33. under the borland directory and I already have all the patches for 3.1
  34. installed that are there.  I'd like to avoid calling Borland if someone
  35. else has already found this problem.
  36.  
  37. I need to use the prototype as shown above, so changing it in some way
  38. will do me no good.
  39.  
  40. If you have an answer, email to me would be great.  If this is not
  41. possible for some reason, a post is ok.  I'll check for the answer
  42. over the next couple of days.
  43.  
  44. Thanks.
  45.  
  46. Steve Gilbert
  47. sg0d@Lehigh.edu
  48.