public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: asharji@uwaterloo.ca To: gcc-gnats@gcc.gnu.org Cc: pabuhr@uwaterloo.ca Subject: c++/9881: Incorrect address calculation for static class member Date: Thu, 27 Feb 2003 18:06:00 -0000 [thread overview] Message-ID: <20030227180343.14835.qmail@sources.redhat.com> (raw) >Number: 9881 >Category: c++ >Synopsis: Incorrect address calculation for static class member >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Feb 27 18:06:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: asharji@uwaterloo.ca >Release: 3.3 20030224 (prerelease) >Organization: >Environment: System: Linux awk.math 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../gcc-20030224/configure --prefix=/u/asharji/gcc/gcc20030224/ --enable-languages=c,c++,objc --enable-threads=posix >Description: The calculation for: double *module::b = &(((bar *)&module::storage)->p); is incorrect and should be done at compile time. In terms of the output, the second value printed should not be 0. >How-To-Repeat: g++ calcbug2.cc ./a.out >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/x-c++src; name="calcbug2.cc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="calcbug2.cc" I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlOjpzdGQ7CgpzdHJ1Y3QgYmFyIHsK ICAgIGRvdWJsZSBwOwp9OyAvLyBiYXIKCnN0cnVjdCBtb2R1bGUgewogICAgc3RhdGljIGRvdWJs ZSAqYjsKICAgIHN0YXRpYyBkb3VibGUgc3RvcmFnZTsKfTsKCmNsYXNzIGZvbyB7CiAgcHVibGlj OgogICAgZm9vKCkgewoJLy8gdGhlIG91dHB1dCBmb3IgYm90aCB2YWx1ZXMgc2hvdWxkIGJlIHRo ZSBzYW1lCgljb3V0IDw8ICZtb2R1bGU6OnN0b3JhZ2UgPDwgIiAiIDw8IG1vZHVsZTo6YiA8PCBl bmRsOwogICAgfQp9OwoKZm9vIGY7IC8vIHByaW50IG91dHB1dAoKZG91YmxlICptb2R1bGU6OmIg PSAmKCgoYmFyICopJm1vZHVsZTo6c3RvcmFnZSktPnApOyAvLyBzaG91bGQgYmUgYSBjb21waWxl LXRpbWUgY2FsY3VsYXRpb24KZG91YmxlIG1vZHVsZTo6c3RvcmFnZSA9IDAuMDsKCmludCBtYWlu KCkgewp9Cg==
next reply other threads:[~2003-02-27 18:06 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-02-27 18:06 asharji [this message] 2003-02-27 18:22 bangerth 2003-02-27 21:40 bangerth 2003-02-27 21:46 Peter A. Buhr 2003-02-27 22:06 Wolfgang Bangerth 2003-02-27 22:56 Peter A. Buhr 2003-02-27 23:16 Wolfgang Bangerth 2003-02-28 13:56 Peter A. Buhr 2003-03-02 22:16 Wolfgang Bangerth
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030227180343.14835.qmail@sources.redhat.com \ --to=asharji@uwaterloo.ca \ --cc=gcc-gnats@gcc.gnu.org \ --cc=pabuhr@uwaterloo.ca \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).