Welcome, Guest. Please login or register.

Author Topic: StormC 64-bit arithmetic bug?  (Read 2152 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: StormC 64-bit arithmetic bug?
« on: September 17, 2004, 04:03:03 PM »
StormC 3 has a multitude of bugs and quirks, especially in C++ mode.

If you dump the number as a pair of unsigned longs (use a union of an array of 2 unsigned longs and 1 unsigned long long), you will see the arithmetic is correct, but in fact the formatted output is at fault.

Add this to improperly constructed arrays of polymoprphic objects, broken function template instansiation, ability to take the address of a nonstatic member function (without an object), non threadsafe exception handling... the list goes on :-/
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: StormC 64-bit arithmetic bug?
« Reply #1 on: September 25, 2004, 02:13:43 PM »
I wasn't implying that you were using C++, just that overall the SC3 compiler model is seiously bug ridden.
int p; // A