tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* g++ alpha only bug
@ 1996-04-11  3:40 ernie
  0 siblings, 0 replies; only message in thread
From: ernie @ 1996-04-11  3:40 UTC (permalink / raw)
  To: tru64-unix-managers

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, ...@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++@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++;
}
============================================================================

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-04-11  3:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-11  3:40 g++ alpha only bug ernie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox