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

  1. Path: sparky!uunet!torolab6.VNET.IBM.COM
  2. From: ferreira@torolab6.VNET.IBM.COM (John Ferreira)
  3. Message-ID: <19930125.082802.265@almaden.ibm.com>
  4. Date: Mon, 25 Jan 93 09:16:14 EST
  5. Newsgroups: comp.unix.aix
  6. Subject: Re: xlC++ Severe Compiler Error
  7. Organization: IBM Canada
  8. Disclaimer: This posting represents the poster's views, not those of IBM
  9. News-Software: UReply 3.0
  10. References: <19930122.052714.669@almaden.ibm.com>
  11.             <1jrv1uINN3lf@chnews.intel.com>
  12. Lines: 106
  13.  
  14. In <1jrv1uINN3lf@chnews.intel.com> Tom McConnell~ writes:
  15. >In article <19930122.052714.669@almaden.ibm.com>, kraemerf@franvm3.VNET.IBM.COM (Frank Kraemer) writes:
  16. >> .
  17. >>
  18. >> One of my customers (University of Kassel) send me the following
  19. >> small C++ program and complained that the xlC++ compiler does
  20. >> not work as it should be. He is running on AIX 3.2.3 level.
  21. >>
  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. >>
  27. >> So the question to the audience is, is this real good C++ style or
  28. >> is our comipler buggy.......
  29. >
  30. >  <stuff deleted>
  31. >
  32. >> > That's the output:
  33. >> >
  34. >> > Variations for 1/2 (in C++):
  35. >> >
  36. >> >  a = 0 should be 0.0
  37. >> >  b = 0 should be 0.5
  38. >> >  c = 1 should be 1.0
  39. >> >  d = 1 should be 1.5
  40. >> >  e = 0.5 shoulbe d 0.5
  41. >> >  f = 0 should be 0.5
  42. >> >  g = 0.5 shoulbe d 0.5
  43. >> >  h = 0 should be 0.0 (!)
  44. >> >
  45. >> > ////////////////////////////////////////////////////////
  46. >>
  47. >> thanks for your comments
  48. >>
  49. >> -frank-
  50. >
  51. >  Here is the output of your program using an RS/6000 550, AIX-3.1.5,
  52. >g++-2.3.3, libg++-2.3:
  53. >
  54. >Variations for 1/2 (in C++):
  55. >
  56. > a = 0 should be 0.0
  57. > b = 0.5 should be 0.5
  58. > c = 1 should be 1.0
  59. > d = 1.5 should be 1.5
  60. > e = 0.5 should be 0.5
  61. > f = 0.5 should be 0.5
  62. > g = 0.5 should be 0.5
  63. > h = 0 should be 0.0 (!)
  64. >
  65. >  Using an RS/6000 560, AIX-3.2.2, g++-2.3.3, libg++-2.3:
  66. >
  67. >Variations for 1/2 (in C++):
  68. >
  69. > a = 0 should be 0.0
  70. > b = 0.5 should be 0.5
  71. > c = 1 should be 1.0
  72. > d = 1.5 should be 1.5
  73. > e = 0.5 should be 0.5
  74. > f = 0.5 should be 0.5
  75. > g = 0.5 should be 0.5
  76. > h = 0 should be 0.0 (!)
  77. >
  78. >  Using and NCR 3350, SVR4, g++-2.3.3, libg++-2.3:
  79. >
  80. >Variations for 1/2 (in C++):
  81. >
  82. > a = 0 should be 0.0
  83. > b = 0.5 should be 0.5
  84. > c = 1 should be 1.0
  85. > d = 1.5 should be 1.5
  86. > e = 0.5 should be 0.5
  87. > f = 0.5 should be 0.5
  88. > g = 0.5 should be 0.5
  89. > h = 0 should be 0.0 (!)
  90. >
  91. >  etc., etc.
  92. >
  93. >    Cheers,
  94. >
  95. >    Tom McConnell
  96. >
  97. > Tom McConnell          |     Internet: tmcconne@sedona.intel.com
  98. > Intel, Corp. C3-91     |     Phone: (602)-554-8229
  99. > 5000 W. Chandler Blvd. | The opinions expressed are my own. No one in
  100. > Chandler, AZ  85226    | their right mind would claim them.
  101. >--
  102. > Tom McConnell          |     Internet: tmcconne@sedona.intel.com
  103. > Intel, Corp. C3-91     |     Phone: (602)-554-8229
  104. > 5000 W. Chandler Blvd. | The opinions expressed are my own. No one in
  105. > Chandler, AZ  85226    | their right mind would claim them.
  106. >
  107.  
  108. Using XL C++ 1.1.1 on 3.2.1, I get:
  109.  a = 0 should be 0.0
  110.  b = 0.5 should be 0.5
  111.  c = 1 should be 1.0
  112.  d = 1.5 should be 1.5
  113.  e = 0.5 should be 0.5
  114.  f = 0.5 should be 0.5
  115.  g = 0.5 should be 0.5
  116.  h = 0 should be 0.0 (!)
  117.  
  118. What is the date of the compiler your customer has?
  119. John Ferreira
  120.