[Bug c++/10207] Empty structure initialization fails under C++ (but works under C)

Gabriel Dos Reis gdr@integrable-solutions.net
Sat Jun 14 21:49:00 GMT 2003


"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



More information about the Gcc-bugs mailing list