public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10781: wrong class size and alignment with static class member
@ 2003-05-14 14:36 yanliu
  0 siblings, 0 replies; only message in thread
From: yanliu @ 2003-05-14 14:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10781
>Category:       c++
>Synopsis:       wrong class size and alignment with static class member
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Wed May 14 14:36:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Yan Liu
>Release:        3.2
>Organization:
>Environment:

>Description:
Here is the testcase:
struct S {
    static double sval;
    double get_sval() {return sval;};
};
double S::sval=10000.0;
Using the following compiling command:
/opt/cross/bin/powerpc64-linux-g++ -fdump-class-hierarchy a.C
we get the following class layout:
Class A
   size=8 align=8
A (0x40066100) 0 empty

The testcase only fails on 64 bit mode.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-14 14:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-14 14:36 c++/10781: wrong class size and alignment with static class member yanliu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).