This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Gcc bug
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Gcc bug
- From: Mark Stankus <mstankus at calpoly dot edu>
- Date: Sun, 24 Sep 2000 10:31:05 -0700
For the following bug, changing "deleting " to "deleting" will make
the code compile (that is,just removing the space!). The bug and extra
info
are after my name.
Mark Stankus
[mstankus@localhost bug]$ uname -a
Linux localhost.localdomain 2.2.15-4mdk #1 Wed May 10 15:31:30 CEST 2000
i686 un
known
[mstankus@localhost bug]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/specs
gcc version 2.95.3 19991030 (prerelease)
[mstankus@localhost bug]$ g++ -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/specs
gcc version 2.95.3 19991030 (prerelease)
[mstankus@localhost bug]$ g++ -c junk2.c
junk2.c: In function `void foo()':
junk2.c:29: Internal compiler error in `assign_stack_temp_for_type', at
function
.c:937
[mstankus@localhost bug]$ cat junk2.c
extern bool bb;
class MyOstream;
extern MyOstream GBStream;
template<class T> MyOstream & operator<<(MyOstream & os,const T & t);
template<class T> inline void del(T *) {
if(!bb) GBStream << "deleting ";
};
struct X {
int nn;
};
class Y{
public:
X* zz;
Y();
~Y();
};
extern X yo;
Y::~Y() { if (zz!= &yo) { del(zz); } };
void foo() {
char p[10];
};
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
instructions.