This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/6716: g++ loops itself and fill ram during compiling

>Number:         6716
>Category:       c++
>Synopsis:       loop and fill ram during compiling
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Sat May 18 05:26:01 PDT 2002
>Originator:     Lorenzo Delana
>Release:        3.1 20020508 (prerelease)
System: Linux alpha 2.4.18 #1 Thu May 16 08:34:19 CEST 2002 i686 unknown
Architecture: i686

	AMDK7(1.1Ghz), Linux-2.4.18+cryptoapi, athlon, glibc-{linuxthreads}-2.2.5
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.1-20020508/configure --prefix=/usr/gcc-3.1 --enable-shared --enable-languages=c,c++,objc --enable-threads : (reconfigured) ../gcc-3.1-20020508/configure --with-gcc-version-trigger=/usr/src/gcc-3.1-20020508/gcc/version.c --host=i686-pc-linux-gnu --prefix=/usr/gcc-3.1 --enable-shared --enable-languages=c,c++,objc,f77 --enable-threads
	try with g++ -c on this simple wrong code:
// --- cut here --
#include <iostream>
#include <set>
using namespace std;

template<class T>
class X
  X() {}
  virtual ~X() { }
  bool operator()( T*, T* ) const { return true; }

  T* x;
  set< X<T>*, X<T> > aset; // <-- THIS IS THE WRONG CODE X<T> for less-than op

class Y : public X<int>

// --- cut here --

  g++ -c <code.cxx>
  check why loop on set STL _Compare using class itself for less-than op


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]