public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23643] Incorrect conversion from derived to empty base class
[not found] <bug-23643-11269@http.gcc.gnu.org/bugzilla/>
@ 2006-10-12 0:56 ` bangerth at dealii dot org
2007-01-12 8:18 ` jbuck at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: bangerth at dealii dot org @ 2006-10-12 0:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from bangerth at dealii dot org 2006-10-12 00:56 -------
Why exactly do you think that the empty base should not be located at
the same address as the simple_base base object?
W.
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at dealii dot org
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23643
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/23643] Incorrect conversion from derived to empty base class
[not found] <bug-23643-11269@http.gcc.gnu.org/bugzilla/>
2006-10-12 0:56 ` [Bug c++/23643] Incorrect conversion from derived to empty base class bangerth at dealii dot org
@ 2007-01-12 8:18 ` jbuck at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: jbuck at gcc dot gnu dot org @ 2007-01-12 8:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jbuck at gcc dot gnu dot org 2007-01-12 08:18 -------
Andrew is right, this isn't a bug, and is in fact required by the ABI.
See http://www.codesourcery.com/cxx-abi/abi.html#class-types, section II,
subsection 3. "First, attempt to place D at offset 0." No rule prevents doing
this, so that is where it lands.
--
jbuck at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23643
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/23643] Incorrect conversion from derived to empty base class
2005-08-30 20:16 [Bug c++/23643] New: " bduong at progress dot com
@ 2005-08-30 20:28 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-30 20:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-30 20:21 -------
Someone will have to look this up in the ABI since this is an ABI issue.
But I think is okay as the base class is empty and takes no space at all.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ABI
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23643
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-01-12 8:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-23643-11269@http.gcc.gnu.org/bugzilla/>
2006-10-12 0:56 ` [Bug c++/23643] Incorrect conversion from derived to empty base class bangerth at dealii dot org
2007-01-12 8:18 ` jbuck at gcc dot gnu dot org
2005-08-30 20:16 [Bug c++/23643] New: " bduong at progress dot com
2005-08-30 20:28 ` [Bug c++/23643] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).