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

--- Comment #14 from Thomas W. Lynch <dimitrisdad at gmail dot com> 2012-05-04 
20:18:02 UTC ---
I went through the life time issues in detail in prior comments. The C++ rules
for life time of an instance do not apply to those of the life time of a class.
Or are you saying these are not distinct?  For what reason is static type
information known at compile time not available to operator new - which is
called at run time?  

Also, if operator new is to be an such an exception that static type
information can not be accessed in it, as it can be in every other operator or
method - then why doesn't the compiler say anything about it?  Should there not
be a warning or some sort that an artificial constraint is being applied in
order to satisfy someone's interpretation of object lifetimes according to the
standard?

Reply via email to