public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jpmct01 at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/59128] New: I use #define to set ALPHA to a constant and then (for convenience) define ALPHA2 = ALPHA*ALPHA Date: Thu, 14 Nov 2013 10:46:00 -0000 [thread overview] Message-ID: <bug-59128-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59128 Bug ID: 59128 Summary: I use #define to set ALPHA to a constant and then (for convenience) define ALPHA2 = ALPHA*ALPHA Product: gcc Version: 4.8.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jpmct01 at gmail dot com Created attachment 31215 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31215&action=edit zip file containing code and results (with line ordered file) I use #define as follows #define ALPHA = 10. #define ALPHA2 ALPHA*ALPHA In my code I define f47 = ALPHA2; which gives ALPHA2 = 100.000000 but when I calculate f47/ALPHA2 I get the result f47/ALPHA2 = 100.000000 when I use the form f47/(1.*ALPHA2) f47/(1.*ALPHA2) = 1.000000 see attached code and result
next reply other threads:[~2013-11-14 10:46 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-11-14 10:46 jpmct01 at gmail dot com [this message] 2013-11-14 11:01 ` [Bug c/59128] " ktkachov at gcc dot gnu.org 2013-11-14 11:01 ` glisse at gcc dot gnu.org
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=bug-59128-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /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).