Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.1 20190307 (experimental)

Options
Warnings
Boost 1.69.0
C++2a(GNU)
no pedantic

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
In file included from /opt/wandbox/gcc-head/include/c++/9.0.1/atomic:41,
                 from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/9.0.1/bits/atomic_base.h: In instantiation of 'std::__atomic_base<_IntTp>::__int_type std::__atomic_base<_IntTp>::operator++() [with _ITp = int; std::__atomic_base<_IntTp>::__int_type = int]':
prog.cc:6:7:   required from here
/opt/wandbox/gcc-head/include/c++/9.0.1/bits/atomic_base.h:319:45: error: cannot convert 'const std::memory_order' to 'int'
  319 |       { return __atomic_add_fetch(&_M_i, 1, memory_order_seq_cst); }
      |                                             ^~~~~~~~~~~~~~~~~~~~
      |                                             |
      |                                             const std::memory_order
<built-in>: note:   initializing argument 3 of 'unsigned int __atomic_add_fetch_4(volatile void*, unsigned int, int)'
Exit Code:
1