home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!panther!mothost!schbbs!schbbs!rick
- From: rick@mel1.geg.mot.com (Rick Rankin)
- Subject: Re: xlC++ Severe Compiler Error
- Organization: Motorola, Inc. - Scottsdale, AZ
- Date: 25 Jan 93 18:13:50 GMT
- Message-ID: <RICK.93Jan25111350@mel1.geg.mot.com>
- In-Reply-To: merrick@magnus.acs.ohio-state.edu's message of Mon, 25 Jan 1993 13:02:22 GMT
- References: <19930122.052714.669@almaden.ibm.com>
- <1993Jan25.130222.3387@magnus.acs.ohio-state.edu>
- Sender: news@schbbs.mot.com (Net News)
- Nntp-Posting-Host: 137.162.1.58
- Lines: 83
-
- In article <1993Jan25.130222.3387@magnus.acs.ohio-state.edu> merrick@magnus.acs.ohio-state.edu (Tom Merrick) writes:
-
- >In article <19930122.052714.669@almaden.ibm.com> kraemerf@franvm3.VNET.IBM.COM writes:
- >>.
- >>
- >>One of my customers (University of Kassel) send me the following
- >>small C++ program and complained that the xlC++ compiler does
- >>not work as it should be. He is running on AIX 3.2.3 level.
- >>
- >>Yes, I'm the proud owner of a C++ book, bought at Palo Alto
- >>in march 1991 - it's a nice looking book but I never touched
- >>more than the table of contents with my eyes, but my friends
- >>are very impressed.........
- >>
- >>So the question to the audience is, is this real good C++ style or
- >>is our comipler buggy.......
- >
- >With xlC at level 1.1.2 running under aix 3.2.2 I got the following:
- >Variations for 1/2 (in C++):
- >
- > a = 0 should be 0.0
- > b = 0.5 should be 0.5
- > c = 1 should be 1.0
- > d = 1.5 should be 1.5
- > e = 0.5 should be 0.5
- > f = 0.5 should be 0.5
- > g = 0.5 should be 0.5
- > h = 0 should be 0.0 (!)
- >
- >Make sure that you are running the current xlC as the latest release came
- >out in late 92.
- >
-
- I get the following results with xlC 1.1.2 under AIX 3.2.3:
-
- Variations for 1/2 (in C++):
-
- a = 0 should be 0.0
- b = 0.5 should be 0.5
- c = 1 should be 1.0
- d = 1.5 should be 1.5
- e = 0.5 should be 0.5
- f = 0.5 should be 0.5
- g = 0.5 should be 0.5
- h = 0 should be 0.0 (!)
-
- It sounds to me also like you have an old version of the compiler.
- You can check it with the command:
-
- lslpp -h xlCcmp.obj
-
- which should output something like
-
- Name
- --------------------
- Fix Id Release Status Action Date Time User Name
- ------- --------------- ---------- ---------- ---------- -------- ----------
- Path: /usr/lib/objrepos
- xlCcmp.obj
- 01.01.0002.0000 COMPLETE APPLY 11/19/92 13:45:42 root
-
- xlCcmp.obj
- 01.01.0002.0008 NONE
-
- Path: /etc/objrepos
- xlCcmp.obj
- 01.01.0002.0000 COMPLETE APPLY 11/19/92 13:53:33 root
-
- From this, you can see that my compiler is at level 01.01.0002.0000,
- or 1.1.2. There is yet a later version avaliable which I have but have
- not had time to install. You can get it by calling IBM Software support
- at 1-800-237-5511.
-
-
- --
- ==============================================================================
- | Rick Rankin | |
- | Motorola | Voice: 602-441-5726 |
- | Government Electronics Group | Fax: 602-441-2919 |
- | 8220 E. Roosevelt St. | Internet: rick@mel1.geg.mot.com |
- | Scottsdale, AZ 85252 | |
- | Mail Drop R4246 | |
- ==============================================================================
-