[Bug c++/54812] [C++11] Delete expression doesn't respect access of defaulted destructor

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 5 21:00:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54812

--- Comment #2 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-10-05 21:00:31 UTC ---
(In reply to comment #1)
> Anyway, here, I only wanted to ask you if this is a show-stopper for your work,
> because I don't know how much time it will take.

While I think that this should be fixed, it will only prevent that I would
directly convert is_constructible to use the combined 

::delete ::new ((void*) nullptr) T(args) 

expression. Our current implementation is not sensitive to this problem,
because we use is_destructible within. I noticed that there are still a bunches
of opportunities to simplify is_constructible (and friends) because a lot of
previous compiler defects have been fixed. So, really no need to hurry!



More information about the Gcc-bugs mailing list