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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!sol.ctr.columbia.edu!eff!ssd.intel.com!ichips!hfglobe!chnews!tmcconne
  2. From: tmcconne@sedona.intel.com (Tom McConnell~)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: xlC++ Severe Compiler Error
  5. Date: 23 Jan 1993 17:25:18 GMT
  6. Organization: Intel Corporation
  7. Lines: 94
  8. Sender: tmcconne@sedona (Tom McConnell~)
  9. Distribution: world
  10. Message-ID: <1jrv1uINN3lf@chnews.intel.com>
  11. References: <19930122.052714.669@almaden.ibm.com>
  12. Reply-To: tmcconne@sedona.intel.com
  13. NNTP-Posting-Host: thunder.intel.com
  14. Originator: tmcconne@sedona
  15.  
  16.  
  17. In article <19930122.052714.669@almaden.ibm.com>, kraemerf@franvm3.VNET.IBM.COM (Frank Kraemer) writes:
  18. > .
  19. > One of my customers (University of Kassel) send me the following
  20. > small C++ program and complained that the xlC++ compiler does
  21. > not work as it should be. He is running on AIX 3.2.3 level.
  22. > Yes, I'm the proud owner of a C++ book, bought at Palo Alto
  23. > in march 1991 - it's a nice looking book but I never touched
  24. > more than the table of contents with my eyes, but my friends
  25. > are very impressed.........
  26. > So the question to the audience is, is this real good C++ style or
  27. > is our comipler buggy.......
  28.  
  29.   <stuff deleted>
  30.  
  31. > > That's the output:
  32. > >
  33. > > Variations for 1/2 (in C++):
  34. > >
  35. > >  a = 0 should be 0.0
  36. > >  b = 0 should be 0.5
  37. > >  c = 1 should be 1.0
  38. > >  d = 1 should be 1.5
  39. > >  e = 0.5 shoulbe d 0.5
  40. > >  f = 0 should be 0.5
  41. > >  g = 0.5 shoulbe d 0.5
  42. > >  h = 0 should be 0.0 (!)
  43. > >
  44. > > ////////////////////////////////////////////////////////
  45. > thanks for your comments
  46. > -frank-
  47.  
  48.   Here is the output of your program using an RS/6000 550, AIX-3.1.5,
  49. g++-2.3.3, libg++-2.3:
  50.  
  51. Variations for 1/2 (in C++):
  52.  
  53.  a = 0 should be 0.0
  54.  b = 0.5 should be 0.5
  55.  c = 1 should be 1.0
  56.  d = 1.5 should be 1.5
  57.  e = 0.5 should be 0.5
  58.  f = 0.5 should be 0.5
  59.  g = 0.5 should be 0.5
  60.  h = 0 should be 0.0 (!)
  61.  
  62.  
  63.   Using an RS/6000 560, AIX-3.2.2, g++-2.3.3, libg++-2.3:
  64.  
  65. Variations for 1/2 (in C++):
  66.  
  67.  a = 0 should be 0.0
  68.  b = 0.5 should be 0.5
  69.  c = 1 should be 1.0
  70.  d = 1.5 should be 1.5
  71.  e = 0.5 should be 0.5
  72.  f = 0.5 should be 0.5
  73.  g = 0.5 should be 0.5
  74.  h = 0 should be 0.0 (!)
  75.  
  76.   Using and NCR 3350, SVR4, g++-2.3.3, libg++-2.3:
  77.  
  78. Variations for 1/2 (in C++):
  79.  
  80.  a = 0 should be 0.0
  81.  b = 0.5 should be 0.5
  82.  c = 1 should be 1.0
  83.  d = 1.5 should be 1.5
  84.  e = 0.5 should be 0.5
  85.  f = 0.5 should be 0.5
  86.  g = 0.5 should be 0.5
  87.  h = 0 should be 0.0 (!)
  88.  
  89.   etc., etc.
  90.  
  91.  
  92.     Cheers,
  93.  
  94.     Tom McConnell
  95.  
  96.  Tom McConnell          |     Internet: tmcconne@sedona.intel.com
  97.  Intel, Corp. C3-91     |     Phone: (602)-554-8229
  98.  5000 W. Chandler Blvd. | The opinions expressed are my own. No one in 
  99.  Chandler, AZ  85226    | their right mind would claim them.
  100. -- 
  101.  Tom McConnell          |     Internet: tmcconne@sedona.intel.com
  102.  Intel, Corp. C3-91     |     Phone: (602)-554-8229
  103.  5000 W. Chandler Blvd. | The opinions expressed are my own. No one in 
  104.  Chandler, AZ  85226    | their right mind would claim them.
  105.