This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 gdr@integrable-solutions.net  2003-06-14 21:49 -------
Subject: Re:  Empty structure initialization fails under C++ (but works under C)

"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]