public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10208: [ABI] Empty structs have zero size in C, but not in C++
@ 2003-04-01 22:06 Geoff Keating
0 siblings, 0 replies; 2+ messages in thread
From: Geoff Keating @ 2003-04-01 22:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/10208; it has been noted by GNATS.
From: Geoff Keating <geoffk@geoffk.org>
To: rth@gcc.gnu.org
Cc: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, lex.augusteijn@philips.com,
nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: c++/10208: [ABI] Empty structs have zero size in C, but not in C++
Date: 01 Apr 2003 14:00:23 -0800
rth@gcc.gnu.org writes:
> Synopsis: [ABI] Empty structs have zero size in C, but not in C++
>
> State-Changed-From-To: analyzed->closed
> State-Changed-By: rth
> State-Changed-When: Tue Apr 1 19:32:57 2003
> State-Changed-Why:
> Not a bug.
>
> Empty structs in C are a GCC extension, and were defined a long
> time ago to be defined as empty size.
This should be documented, though; I'll make a patch.
--
- Geoffrey Keating <geoffk@geoffk.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/10208: [ABI] Empty structs have zero size in C, but not in C++
@ 2003-04-01 19:32 rth
0 siblings, 0 replies; 2+ messages in thread
From: rth @ 2003-04-01 19:32 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, lex.augusteijn, nobody
Synopsis: [ABI] Empty structs have zero size in C, but not in C++
State-Changed-From-To: analyzed->closed
State-Changed-By: rth
State-Changed-When: Tue Apr 1 19:32:57 2003
State-Changed-Why:
Not a bug.
Empty structs in C are a GCC extension, and were defined a long
time ago to be defined as empty size.
Empty structs in C++ are defined by ISO to be size one.
"Don't do that."
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10208
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-01 22:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-01 22:06 c++/10208: [ABI] Empty structs have zero size in C, but not in C++ Geoff Keating
-- strict thread matches above, loose matches on Subject: below --
2003-04-01 19:32 rth
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).