From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29671 invoked by alias); 3 May 2004 03:40:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 29660 invoked by uid 48); 3 May 2004 03:40:55 -0000 Date: Mon, 03 May 2004 03:40:00 -0000 Message-ID: <20040503034055.29658.qmail@sources.redhat.com> From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040501113223.15240.d.yu.bolkhovityanov@inp.nsk.su> References: <20040501113223.15240.d.yu.bolkhovityanov@inp.nsk.su> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/15240] sizeof() doesn't work on struct fields X-Bugzilla-Reason: CC X-SW-Source: 2004-05/txt/msg00130.txt.bz2 List-Id: ------- 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