[Bug other/26462] New: initializer element is not computable at load time
pluto at agmk dot net
gcc-bugzilla@gcc.gnu.org
Fri Feb 24 21:03:00 GMT 2006
$ cat const.c
#define B0 (+1.0l/5/1/6)
const double c0 = B0; // initializer element is not computable at load time
const double c0_tab[1] = { B0 }; // initializer element is not constant
#define B1 (+1.0l/5)
const double c1 = B1; // ok.
const double c1_tab[1] = { B1 }; // initializer element is not constant
$ gcc const.c
const.c:3: error: initializer element is not computable at load time
const.c:4: error: initializer element is not constant
const.c:4: error: (near initialization for 'c0_tab[0]')
const.c:9: error: initializer element is not constant
const.c:9: error: (near initialization for 'c1_tab[0]')
gcc-4.1.0-rc1 with long-double-128 patchset.
--
Summary: initializer element is not computable at load time
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pluto at agmk dot net
GCC build triplet: ppc-linux
GCC host triplet: ppc-linux
GCC target triplet: ppc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26462
More information about the Gcc-bugs
mailing list