Public bug reported: Binary package hint: gcc
This appeared recently when upgrading from gutsy to intrepid. Compiling the following with g++ void toto1(double*const __attribute__((aligned(16))) X); void toto2(double* const (&X)[1]); produdes g++ -c -o test.o test.cc test.cc:2: error: alignment of array elements is greater than element size Observe the `2' in the error message, the error is reported for toto2. (For toto1 an error would be acceptable, I think). But even worse, if we take void toto0(double* const (&X)[1]); void toto1(double*const __attribute__((aligned(16))) X); void toto2(double* const (&X)[1]); All three prototypes compile flawlessly. This particular testing was done with 4:4.3.1-1ubuntu2 on an 8.10 amd64, but we observed the same thing on 8.10 i386 Previously, everything was working well on 8.04. ProblemType: Bug Architecture: amd64 DistroRelease: Ubuntu 8.10 Package: g++ 4:4.3.1-1ubuntu2 ProcEnviron: SHELL=/bin/tcsh PATH=/home/username/bin:/usr/bin:/usr/sbin:/bin:/usr/X11R6/bin:/usr/bin/X11:/usr/local/bin:/usr/local/bin LANG=de_DE.iso885915 SourcePackage: gcc-defaults Uname: Linux 2.6.27.5 x86_64 ** Affects: gcc-defaults (Ubuntu) Importance: Undecided Status: New ** Tags: apport-bug -- regression: g++ produces spurious alignment errors for prototypes https://bugs.launchpad.net/bugs/295969 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs