This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10207] Empty structure initialization fails under C++ (but works under C)
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jun 2003 20:33:27 -0000
- Subject: [Bug c++/10207] Empty structure initialization fails under C++ (but works under C)
- References: <20030325082601.10207.vencain@swbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10207
------- Additional Comments From bangerth@dealii.org 2003-06-14 20:33 -------
Regarding the sizeof problem: the C standard says that empty structures have size
zero, while the C++ standard says that it must have a nonzero size. Another one
of those unfortunate decisions of the C standards committee :-(