This is the mail archive of the gcc-bugs@gcc.gnu.org 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]

Internal compiler error with <list>


My system : RedHat Linux 5.2, with egcs 1.1b-2 rpms (egcs-2.91.57)
I've been using this egcs for several months, compiling KDE every day,
so it's not an installation/configuration issue...

The  apparently guilty file, /usr/include/g++/list, is from
egcs-libstdc++-devel-1.1b-1, and the library itself is egcs-libstdc++-1.1b-1.

The following test program shows "internal compiler error" on line 13 :
(simply compiled with g++ -c main.cc)

#include <list>

class KIOJob
{
public:
  KIOJob();
  virtual ~KIOJob();
};

int main()
{
    KIOJob* job = new KIOJob;
    job->list( "Hello world" );
}


// Of course, the list() method doesn't exist, so it shouldn't compile
// but it shouldn't say 'internal compiler error' either !

Thanks for your great work on egcs !

-- 
 ____________________________________________________________________
|                                                                    |
|  David FAURE                                                       |
|  E-mail : David.Faure@insa-lyon.fr, faure@kde.org                  |
|  http://www.insa-lyon.fr/People/AEDI/dfaure/index.html             |
|____________________________________________________________________|


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