This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug c++/10207] Empty structure initialization fails under C++ (but works under C)
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc-bugzilla at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jun 2003 23:47:21 +0200
- Subject: Re: [Bug c++/10207] Empty structure initialization fails under C++ (but works under C)
- Organization: Integrable Solutions
- References: <20030325082601.10207.vencain@swbell.net><20030614203327.22853.qmail@sources.redhat.com>
"bangerth@dealii.org" <gcc-bugzilla@gcc.gnu.org> writes:
| Regarding the sizeof problem: the C standard says that empty
| structures have size zero,
Do you have reference for that statement?
| while the C++ standard says that it must have a nonzero size. Another one
| of those unfortunate decisions of the C standards committee :-(
No, rather another GNU C extension.
-- Gaby