This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error when calling ~char() destructor
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Internal compiler error when calling ~char() destructor
- From: Jean-Francois Panisset <panisset at discreet dot com>
- Date: Thu, 19 Aug 1999 00:49:09 -0400 (EDT)
The following code:
template<class T>
void foo(T *data)
{
((char *)data)->~char();
}
causes an internal compiler error:
g++ -c toto.C
toto.C: In function `void foo(T *)':
toto.C:4: Internal compiler error.
toto.C:4: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
toto.C:4: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
g++ --version
egcs-2.91.66
on i386-redhat-linux
JF Panisset
panisset@discreet.com
Jean-Francois Panisset panisset@discreet.com
Software Engineer
Discreet Logic