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 when calling ~char() destructor



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 


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