Created
September 10, 2014 09:43
-
-
Save ncopa/b900aaaef38610f672e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ncdev-edge-musl-x86:~/test/max_align_t$ g++ -std=c++11 a.cpp | |
In file included from /usr/include/stddef.h:17:0, | |
from /usr/include/c++/4.8.3/cstddef:42, | |
from a.cpp:2: | |
/usr/include/bits/alltypes.h:75:27: error: expected identifier before numeric constant | |
typedef struct { _Alignas(8) long long __ll; long double __ld; } max_align_t; | |
^ | |
/usr/include/bits/alltypes.h:75:27: error: expected ',' or '...' before numeric constant | |
/usr/include/bits/alltypes.h:75:28: error: expected ';' at end of member declaration | |
typedef struct { _Alignas(8) long long __ll; long double __ld; } max_align_t; | |
^ | |
ncdev-edge-musl-x86:~/test/max_align_t$ cat a.cpp | |
#include <iostream> | |
#include <cstddef> | |
int main() | |
{ | |
std::cout << alignof(::max_align_t) << '\n'; | |
} | |
ncdev-edge-musl-x86:~/test/max_align_t$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment