[prev in list] [next in list] [prev in thread] [next in thread] 

List:       musl
Subject:    Re: [musl] _Alignas in i386/bits/alltypes.h.in
From:       Natanael Copa <ncopa () alpinelinux ! org>
Date:       2014-09-11 3:01:10
Message-ID: 1410418870.6465.1 () mail ! alpinelinux ! org
[Download RAW message or body]

On Wed, Sep 10, 2014 at 1:22 PM, Szabolcs Nagy <nsz@port70.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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic