g++ alpha only bug

From: Ernie Rael <ernie_at_MasPar.COM>
Date: Wed, 10 Apr 1996 20:40:09 -0700

The c++ program below gets an error when compiled on a g++ built under
DU 3.2C at my location. Other machines do not have a problem with it
according to first response from a support person, ..._at_prep.ai.mit.edu.
(and that was a quick response).
If someone with gcc 2.7.2 would try it and let me know if they have the
same problem i would appreciate it. (sorry if this strays out of topic)
-ernie
_m_heap.c: In method `void m_heap::print()':
_m_heap.c:17: Internal compiler error.
_m_heap.c:17: Please submit a full bug report to `bug-g++_at_prep.ai.mit.edu'.
============================================================================
class m_heap {
        private: int i;
        public: void print() ;
};

template <class T>
inline int leda_cast(const T& x)
{
}

#define MAXINT ((int)~(1U << (8 * sizeof( int )) - 1) )

void m_heap::print()
{
    for (i=0;i<5;i++)
        while (0 != leda_cast(MAXINT)) i++;
}
============================================================================
Received on Thu Apr 11 1996 - 05:57:24 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT