clone 565085 ! reassign ! gcc-4.5 retitle ! gcc-4.5: regression - constant storage size not detected properly block 565085 by ! thanks
Although it seems to be weird (due to preprocessor defines creating this line) - as far as I can see the following code is correct: int main() { static short neighlist[((int)(((double)3.14159265358979323846)/2.*11+.5))+6][2]; } but gcc 4.5 fails on it with foo.c: In function 'main': foo.c:3:14: error: storage size of 'neighlist' isn't constant Older gcc versions didn't show this issue. -- Bernd Zeimetz Debian GNU/Linux Developer http://bzed.de http://www.debian.org GPG Fingerprints: 06C8 C9A2 EAAD E37E 5B2C BE93 067A AD04 C93B FF79 ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F -- To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org