Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 11 Sep 2014 05:01:10 +0200
From: Natanael Copa <ncopa@...inelinux.org>
To: musl@...ts.openwall.com
Cc: musl@...ts.openwall.com
Subject: Re: _Alignas in i386/bits/alltypes.h.in

On Wed, Sep 10, 2014 at 1:22 PM, Szabolcs Nagy <nsz@...t70.net> wrote:
> _Alignas usage in the definition of max_align_t
> is visible in stddef.h when __cplusplus >= 201103L
> 
> there should be a
> 
>  #if __cplusplus >= 201103L
>  #define _Alignas alignas
>  #endif
> 
> somewhere, or use alignas ifdef __cpluslpus in alltypes
> 
> it may be reasonable to define _Alignas and _Noreturn
> in features.h to the c++11 equivalents in c++ mode


FYI. This issue breaks qt5 build and xulrunner/firefox build on x86.

Testcase:

#include <iostream>
#include <cstddef>
int main()
{
    std::cout << alignof(::max_align_t) << '\n';
}


-nc

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.