Internal compiler error when calling ~char() destructor

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Tue Feb 29 01:22:00 GMT 2000


> The following code:
> 
> template<class T>
> void foo(T *data)
> {
>   ((char *)data)->~char();
> }
> 
> causes an internal compiler error:

Thanks for your bug report. The mainline compiler (2.96 20000223
(experimental)) compiles this without problems, so the bug appears to
be fixed.

Regards,
Martin


More information about the Gcc-bugs mailing list