This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/53225] static operator new in multiple inheritance carries incorrect type information for the class


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

--- Comment #19 from Thomas W. Lynch <dimitrisdad at gmail dot com> 2012-05-04 21:27:18 UTC ---
Johnathan, const static members are compile time beasts.  There are almost
macros like #define, but not quite as the compiler will give them storage if
you take their address.  I don't think it is a good idea to add another
paradigm into this. Nor does your example explain how the field moved and was
correctly assigned in the code I gave above with method() - if I were to accept
your example as valid, then that code would not work - but it does, there is
is.  You can compile it, and get the memory dumps yourself in gdb.  Can you
speak to that example with method()?  That would be very useful.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]