c++/8372: ICE on explicit call of destructor

reichelt@igpm.rwth-aachen.de reichelt@igpm.rwth-aachen.de
Sun Oct 27 15:58:00 GMT 2002

>Number:         8372
>Category:       c++
>Synopsis:       ICE on explicit call of destructor
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 27 15:56:00 PST 2002
>Originator:     reichelt@igpm.rwth-aachen.de
>Release:        gcc 3.0.x, 3.2 branch and mainline
The following code causes an ICE when compiled with "g++ -c"

--------------------snip here-----------------
struct A {};

template <typename T> struct B
  B() { A().A::~A(); }

B<void> b;
--------------------snip here-----------------



More information about the Gcc-bugs mailing list