[Bug c++/15890] [3.3/3.4/3.5 regression] internal compiler error: in c_expand_expr, at c-common.c:4138
jkherciueh at gmx dot net
gcc-bugzilla@gcc.gnu.org
Wed Jun 9 13:35:00 GMT 2004
------- Additional Comments From jkherciueh at gmx dot net 2004-06-09 13:35 -------
> The code is invalid, btw: you can't declare operator delete a template
> this way (how is the compiler supposed to figure out the value of 'T'?).
>
> W.
Sure, but if you ditch that "template< typename T >", the error won't show :-)
Kai-Uwe
ps. I was mistaken about minimality. I forgot to take out the smart pointer
template. Thus, this is shorter. It still triggers the internal error:
template < typename T >
void operator delete ( void* raw ) {
delete raw;
}
class A { };
int main() {
A* a = new A;
delete a;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15890
More information about the Gcc-bugs
mailing list