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 egcs-current


This is an internal of with g++ version egcs-2.91.24 19980418 (gcc2
ss-980401 experimental), as shown on Linux 2.0.32, glibc 2.1.93.

The compiler was compiled with itself.

This program, culled from a failure to compile PRCS (egcs 1.01 worked
perfectly),

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
class ProjectDescriptor;   

class PrjFields {
public:
    int(ProjectDescriptor:: *read_func) (int offset);
};

class ProjectDescriptor {
  public:
    static const PrjFields _pftable[];
};

 const struct PrjFields  ProjectDescriptor::_pftable[] =
{
      {
#ifdef BUG
		  (int (ProjectDescriptor::*)(int))
#endif
											0
	  },
};
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


compiled with

c++ -v -c bug.cc

generates an internal error:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.24/specs
gcc version egcs-2.91.24 19980418 (gcc2 ss-980401 experimental)
 /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.24/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Di386 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__pentium__ -D__i586__ -D__i386__ -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__pentium__ -D__i586__ bug.cc /tmp/ccU2DEba.ii
GNU CPP version egcs-2.91.24 19980418 (gcc2 ss-980401 experimental) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/g++
 /usr/lib/g++-include
 /usr/local/include
 /usr/i586-pc-linux-gnu/include
 /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.24/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.24/cc1plus /tmp/ccU2DEba.ii -quiet -dumpbase bug.cc -version -o /tmp/ccU2DEba.s
GNU C++ version egcs-2.91.24 19980418 (gcc2 ss-980401 experimental) (i586-pc-linux-gnu) compiled by GNU C version egcs-2.91.24 19980418 (gcc2 ss-980401 experimental).
bug.cc:20: Internal compiler error.
bug.cc:20: Please submit a full bug report to `egcs-bugs@cygnus.com'.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

The error vanishes if -DBUG is given.
-- 
Matthias Urlichs
noris network GmbH


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