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

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



severity 428814 critical
quit

On Thu, Jun 14, 2007 at 02:27:49PM +0200, Falk Hueffner wrote:
> Gerrit Pape <pape@dbnbgs.smarden.org> writes:
> > 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]')
> 
> This is http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26374

The dietlibc FTBFS because of this.

gcc-4.2 4.2-20070627-1 has the same problem, is there a workaround?

Thanks, Gerrit.



Reply to: