Language
C++
Compiler
clang HEAD 6.0.0 (https://github.com/llvm-mirror/clang.git 31a16c4f5bc89d8e9ca6c0a52a34b98c18058b6b) (https://github.com/llvm-mirror/llvm.git 468b64ac6c5a04d0616b52a7e5d0e3053a773eee)
Options
Warnings
Boost 1.65.1
C++2a(GNU)
no pedantic
Raw compiler options
-fsanitize=undefined
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.65.1/clang-head/include -std=gnu++2a -fsanitize=undefined
(/home/jail/prog.exe+0x425984): runtime error: constructor call on misaligned address 0x7ffdc96429d8 for type 'C', which requires 16 byte alignment
0x7ffdc96429d8: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
prog.cc:11:8: runtime error: constructor call on misaligned address 0x7ffdc96429d8 for type 'C *', which requires 16 byte alignment
0x7ffdc96429d8: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
8
std::function<void(int)>
16
48
A
16
48
B
1
1
C
16
64
D
16
80
Exit Code:
0