[Bug c/15240] sizeof() doesn't work on struct fields
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Mon May 3 03:40:00 GMT 2004
------- Additional Comments From bangerth at dealii dot org 2004-05-03 03:40 -------
One possible answer is that contrary to Java, in C and C++ you cannot
access members of _types_ using type.member. If anything, then this should
be type::member (in C++), which would fail in your case since the
member is non-static, though. The dot-operator can only be used to
access members of _variables_, not _types_.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15240
More information about the Gcc-bugs
mailing list