in reply to Inline::C producing an absurd result

I tried the C program with gcc-4.8.2 and gcc-6.3.0 — both gave the buggy output if -O optimization is enabled. Tried icc as well (correct result) and clang-4.0 (GNU decimal type extension not supported).

GCC docs say "support of decimal float as specified by the draft technical report is incomplete". But see if you can find something on gcc.gnu.org/bugzilla .

  • Comment on Re: Inline::C producing an absurd result

Replies are listed 'Best First'.
Re^2: Inline::C producing an absurd result
by syphilis (Archbishop) on May 09, 2017 at 01:09 UTC
    both gave the buggy output if -O optimization is enabled

    Yeah ... I should've thought of testing that. I see the same - and I'll report it to gcc bugzilla tonight.
    Thanks to all.

    UPDATE: Bug report is at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80692

    Cheers,
    Rob