home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / aix / 13717 < prev    next >
Encoding:
Text File  |  1993-01-25  |  3.2 KB  |  98 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!panther!mothost!schbbs!schbbs!rick
  3. From: rick@mel1.geg.mot.com (Rick Rankin)
  4. Subject: Re: xlC++ Severe Compiler Error
  5. Organization: Motorola, Inc. - Scottsdale, AZ
  6. Date: 25 Jan 93 18:13:50 GMT
  7. Message-ID: <RICK.93Jan25111350@mel1.geg.mot.com>
  8. In-Reply-To: merrick@magnus.acs.ohio-state.edu's message of Mon, 25 Jan 1993 13:02:22 GMT
  9. References: <19930122.052714.669@almaden.ibm.com>
  10.     <1993Jan25.130222.3387@magnus.acs.ohio-state.edu>
  11. Sender: news@schbbs.mot.com (Net News)
  12. Nntp-Posting-Host: 137.162.1.58
  13. Lines: 83
  14.  
  15. In article <1993Jan25.130222.3387@magnus.acs.ohio-state.edu> merrick@magnus.acs.ohio-state.edu (Tom Merrick) writes:
  16.  
  17. >In article <19930122.052714.669@almaden.ibm.com> kraemerf@franvm3.VNET.IBM.COM writes:
  18. >>.
  19. >>
  20. >>One of my customers (University of Kassel) send me the following
  21. >>small C++ program and complained that the xlC++ compiler does
  22. >>not work as it should be. He is running on AIX 3.2.3 level.
  23. >>
  24. >>Yes, I'm the proud owner of a C++ book, bought at Palo Alto
  25. >>in march 1991 - it's a nice looking book but I never touched
  26. >>more than the table of contents with my eyes, but my friends
  27. >>are very impressed.........
  28. >>
  29. >>So the question to the audience is, is this real good C++ style or
  30. >>is our comipler buggy.......
  31. >
  32. >With xlC at level 1.1.2 running under aix 3.2.2 I got the following:
  33. >Variations for 1/2 (in C++):
  34. >
  35. >    a = 0 should be 0.0 
  36. >    b = 0.5 should be 0.5 
  37. >    c = 1 should be 1.0 
  38. >    d = 1.5 should be 1.5 
  39. >    e = 0.5 should be 0.5 
  40. >    f = 0.5 should be 0.5 
  41. >    g = 0.5 should be 0.5 
  42. >    h = 0 should be 0.0 (!)
  43. >
  44. >Make sure that you are running the current xlC as the latest release came
  45. >out in late 92.
  46. >
  47.  
  48. I get the following results with xlC 1.1.2 under AIX 3.2.3:
  49.  
  50. Variations for 1/2 (in C++):
  51.  
  52.  a = 0 should be 0.0 
  53.  b = 0.5 should be 0.5 
  54.  c = 1 should be 1.0 
  55.  d = 1.5 should be 1.5 
  56.  e = 0.5 should be 0.5 
  57.  f = 0.5 should be 0.5 
  58.  g = 0.5 should be 0.5 
  59.  h = 0 should be 0.0 (!)
  60.  
  61. It sounds to me also like you have an old version of the compiler.
  62. You can check it with the command:
  63.  
  64. lslpp -h xlCcmp.obj
  65.  
  66. which should output something like
  67.  
  68.  Name
  69.  --------------------
  70.    Fix Id  Release         Status     Action     Date       Time     User Name
  71.    ------- --------------- ---------- ---------- ---------- -------- ----------
  72. Path: /usr/lib/objrepos
  73.   xlCcmp.obj
  74.             01.01.0002.0000 COMPLETE   APPLY      11/19/92   13:45:42 root
  75.  
  76.   xlCcmp.obj
  77.             01.01.0002.0008 NONE
  78.  
  79. Path: /etc/objrepos
  80.   xlCcmp.obj
  81.             01.01.0002.0000 COMPLETE   APPLY      11/19/92   13:53:33 root
  82.  
  83. From this, you can see that my compiler is at level 01.01.0002.0000,
  84. or 1.1.2.  There is yet a later version avaliable which I have but have
  85. not had time to install.  You can get it by calling IBM Software support
  86. at 1-800-237-5511.
  87.  
  88.  
  89. --
  90. ==============================================================================
  91. | Rick Rankin                |                     |
  92. | Motorola                | Voice: 602-441-5726             |
  93. | Government Electronics Group        | Fax: 602-441-2919             |
  94. | 8220 E. Roosevelt St.            | Internet: rick@mel1.geg.mot.com    |
  95. | Scottsdale, AZ 85252            |                     |
  96. | Mail Drop R4246            |                     |
  97. ==============================================================================
  98.