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 libstdc++/56019] max_align_t should be in std namespace


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

Jobst.Ziebell at mailbox dot tu-dresden.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Jobst.Ziebell at mailbox dot tu-dr
                   |                            |esden.de

--- Comment #4 from Jobst.Ziebell at mailbox dot tu-dresden.de ---
The fix introduces another problem. Whenever '__need_size_t' is defined prior
to the inclusion of <cstddef>, the type 'max_align_t' will not have been
defined.
This inevitably causes a compiler error:

#define __need_size_t
#include <cstddef>

int main( void )
{
    return 0;
}

This happens on Mac OS X 10.9. In my case it got triggered by including
<gmp.h>.
Presumably this bug also occurs when #defining the other '__need_*' macros.


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