public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/6874: deriving from zero-sized objects causes extraneous padding
@ 2002-06-07 19:06 Charlie Skilbeck
  0 siblings, 0 replies; 3+ messages in thread
From: Charlie Skilbeck @ 2002-06-07 19:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/6874; it has been noted by GNATS.

From: "Charlie Skilbeck" <charlie@skilbeck.com>
To: <lerdsuwa@gcc.gnu.org>,
	<gcc-bugs@gcc.gnu.org>,
	<gcc-prs@gcc.gnu.org>,
	<gnubug@skilbeck.com>,
	<nobody@gcc.gnu.org>,
	<gcc-gnats@gcc.gnu.org>
Cc:  
Subject: Re: c++/6874: deriving from zero-sized objects causes extraneous padding
Date: Fri, 7 Jun 2002 19:04:10 -0700

 Sadly, upgrading to the the beta 3.0 compiler is not an option at this stage
 of our project (the mips version is unstable) - can someone point me at the
 relevant source file, and I'll fix it myself...
 
 Cheers,
 Charlie.
 
 ----- Original Message -----
 From: <lerdsuwa@gcc.gnu.org>
 To: <gcc-bugs@gcc.gnu.org>; <gcc-prs@gcc.gnu.org>; <gnubug@skilbeck.com>;
 <nobody@gcc.gnu.org>
 Sent: Fri, Jun 07, 2002 7:25 AM
 Subject: Re: c++/6874: deriving from zero-sized objects causes extraneous
 padding
 
 
 > Synopsis: deriving from zero-sized objects causes extraneous padding
 >
 > State-Changed-From-To: open->closed
 > State-Changed-By: lerdsuwa
 > State-Changed-When: Fri Jun  7 07:25:37 2002
 > State-Changed-Why:
 >     GCC 3.0 and later (with the new V3 ABI) behave like
 >     the suggested idea.
 >
 >
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
 r=6874
 >
 >
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/6874: deriving from zero-sized objects causes extraneous padding
@ 2002-06-07  7:25 lerdsuwa
  0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-06-07  7:25 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gnubug, nobody

Synopsis: deriving from zero-sized objects causes extraneous padding

State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Fri Jun  7 07:25:37 2002
State-Changed-Why:
    GCC 3.0 and later (with the new V3 ABI) behave like 
    the suggested idea.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6874


^ permalink raw reply	[flat|nested] 3+ messages in thread

* c++/6874: deriving from zero-sized objects causes extraneous padding
@ 2002-05-30 16:06 gnubug
  0 siblings, 0 replies; 3+ messages in thread
From: gnubug @ 2002-05-30 16:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6874
>Category:       c++
>Synopsis:       deriving from zero-sized objects causes extraneous padding
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu May 30 13:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     gnubug@skilbeck.com
>Release:        2.95.??
>Organization:
>Environment:
mips
>Description:
when deriving from a zero-sized struct, can we get the dummy single byte overlaid by the data members of the derived struct?

>How-To-Repeat:
struct Bob
{
  void *operator new(size_t s);
  void operator delete(void *p);
};

struct Bill : Bob
{
  int Jack;
};

...

sizeof(Bob)  == 1 (Fine)
sizeof(Bill) == 8 (sizeof(int) would be nice, like other compilers)
>Fix:
er... hack the gcc!?
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-08  2:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-07 19:06 c++/6874: deriving from zero-sized objects causes extraneous padding Charlie Skilbeck
  -- strict thread matches above, loose matches on Subject: below --
2002-06-07  7:25 lerdsuwa
2002-05-30 16:06 gnubug

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).