Launchpad has imported 3 comments from the remote bug at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41966.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2009-11-06T10:09:37+00:00 Jens Gustedt wrote: [This is a copy of a bug that I posted a year ago on ubuntu's launchpad. Nothing happened there, and now I am still observing the same problem with gcc 4.4.1 on a newly upgraded ubuntu 9.10] 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. Reply at: https://bugs.launchpad.net/gcc/+bug/295969/comments/2 ------------------------------------------------------------------------ On 2011-09-25T15:59:13+00:00 Paolo-carlini wrote: No errors in 4_6-branch and mainline. Reply at: https://bugs.launchpad.net/gcc/+bug/295969/comments/4 ------------------------------------------------------------------------ On 2011-09-25T16:33:05+00:00 Jens Gustedt wrote: Just to add to the list, since this finally found some attention. The problem is also manifest for 4.5.2, only the difference is that this time the three line version at the end of the original report also have the error. Reply at: https://bugs.launchpad.net/gcc/+bug/295969/comments/5 ** Changed in: gcc Status: New => Invalid ** Changed in: gcc Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/295969 Title: regression: g++ produces spurious alignment errors for prototypes To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/295969/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
