[Bug 911871] Re: FTBFS on amd64, i386 for test-rebuild-20111222 (gcc-4.7)

Colin Watson cjwatson at canonical.com
Thu Jan 5 11:47:05 UTC 2012


This looks correct to me.  "i" requires the operand to be a compile-time constant.  In general, the memory location of a multi-dimensional array in C isn't constant at compile-time.  Now, as it happens, for ((char *) &sb_sample_f[1][0][0] - (char *) &sb_sample_f[0][0][0]) to be particularly meaningful probably requires the array to be declared directly rather than dynamically
allocated, so in practice that *difference* probably is a constant; but proving that requires the compiler to reason across function boundaries in quite complex ways.

Changing this to "r" looks sensible to me.

-- 
You received this bug notification because you are a member of
Bluetooth, which is subscribed to bluez in Ubuntu.
https://bugs.launchpad.net/bugs/911871

Title:
  FTBFS on amd64, i386 for test-rebuild-20111222 (gcc-4.7)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/911871/+subscriptions



More information about the Ubuntu-bluetooth mailing list