[Bug c/60136] New: indexing an 8-element array with a long long results in bad results
daniel.hussey at nist dot gov
gcc-bugzilla@gcc.gnu.org
Mon Feb 10 19:58:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60136
Bug ID: 60136
Summary: indexing an 8-element array with a long long results
in bad results
Product: gcc
Version: 4.5.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: daniel.hussey at nist dot gov
My compile command is: gcc program.c -o test -L. -lcfitsio -lm
I was indexing an 8-element double array with a long long integer. When
converting the result to a string (sprintf of printf) the result was garbage.
When used in computation, the correct value was used.
More information about the Gcc-bugs
mailing list