https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71804

--- Comment #2 from Guille <guille at cal dot berkeley.edu> ---
(In reply to Marc Glisse from comment #1)
> This is not the right place to learn about C++. Before filing a bug report
> about a compiler, please find another compiler that behaves differently. If
> all compilers behave the same, it is unlikely to be a bug.

Right you are. Clang does the same. 
It's not exactly the first time I use c++, still amazed at this. I'll look
where the standard specifies this, I couldn't find reference to it online. 
I find it hard not assume something isn't quite right when one can create
simple code with non-matching ctor/dtor. 

Thanks for the clarification, I'll try to find out about this elsewhere.

Reply via email to