This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51316] alignof doesn't work with arrays of unknown bound


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51316

--- Comment #7 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-12-30 21:11:24 UTC ---
Author: paolo
Date: Fri Dec 30 21:11:20 2011
New Revision: 182746

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182746
Log:
/c-family
2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51316
    * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
    of array types with an unknown bound.

/testsuite
2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51316
    * g++.dg/cpp0x/alignof4.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/alignof4.C
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]