home *** CD-ROM | disk | FTP | other *** search
- 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
- From: sg0d@ns1.cc.lehigh.edu (STEPHEN R. GILBERT)
- Newsgroups: comp.lang.c++
- Subject: Possible bug in BC 3.1: ellipsis in proto argument list
- Message-ID: <1993Jan24.050155.32517@ns1.cc.lehigh.edu>
- Date: 24 Jan 93 05:01:55 GMT
- Organization: Lehigh University
- Lines: 38
-
- Forgive me if this is a FAQ (probably isn't) or if this question has
- been asked before.
-
- I seem to have found a bug in my Borland C++ 3.1 compiler. I narrowed
- the problem down to the following prototype:
-
- void foo(...)
-
- If the above line is by itself in foo.h and I run:
- bcc -P -c foo.h
- It compiles without mishap. If you're wondering: -P is to force a C++
- compile and -c is compile to .obj only.
-
- The problem is that if I try to compile without the -P, that is,
- compile in regular, standard BC 3.1, I get the error message:
- ) expected
-
- This is no big deal- I can just compile with the C++ option all the
- time, but regular BC should be able to compile a prototype with just
- an ellipsis in the argument list without a problem- I think. I guess
- my real question is: Does BC 3.1 have a bug? My bcc.exe is dated
- 6-10-92 at 03:10a. If there is a patch floating around somewhere
- could someone let me know where to ftp it from. I checked simtel20
- under the borland directory and I already have all the patches for 3.1
- installed that are there. I'd like to avoid calling Borland if someone
- else has already found this problem.
-
- I need to use the prototype as shown above, so changing it in some way
- will do me no good.
-
- If you have an answer, email to me would be great. If this is not
- possible for some reason, a post is ok. I'll check for the answer
- over the next couple of days.
-
- Thanks.
-
- Steve Gilbert
- sg0d@Lehigh.edu
-