[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#428814: [powerpc] error: initializer element is not constant



Package: gcc-4.1
Version: 4.1.2-12
Severity: important

On a current Debian/powerpc sid system:

 $ cat >ttt.c <<EOT
 static const double d[] = { 1.0l/6/1/2, -1.0l/30/3/4 };
 int main() { return 0; }
 EOT
 $ gcc-4.1 ttt.c
 ttt.c:1: error: initializer element is not constant
 ttt.c:1: error: (near initialization for 'd[0]')
 ttt.c:1: error: initializer element is not constant
 ttt.c:1: error: (near initialization for 'd[1]')
 $ echo $?
 1
 $ 

It works just fine on other architectures, and indeed should work IMO.
It causes the dietlibc to FTBFS

 http://buildd.debian.org/fetch.cgi?&pkg=dietlibc&ver=0.30-6&arch=powerpc&stamp=1178194051&file=log

Thanks, Gerrit.



Reply to: