Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.1 20190310 (experimental)

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

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:118:10: warning: unused variable 'e11' [-Wunused-variable]
  118 |     auto e11 = storage<E1>::create ( "A" );
      |          ^~~
prog.cc:119:10: warning: unused variable 'e12' [-Wunused-variable]
  119 |     auto e12 = storage<E1>::create ( "B" );
      |          ^~~
prog.cc:120:10: warning: unused variable 'e13' [-Wunused-variable]
  120 |     auto e13 = storage<E1>::create ( "C" );
      |          ^~~
prog.cc:122:10: warning: unused variable 'e21' [-Wunused-variable]
  122 |     auto e21 = storage<E2>::create ( "d" );
      |          ^~~
prog.cc:123:10: warning: unused variable 'e22' [-Wunused-variable]
  123 |     auto e22 = storage<E2>::create ( "e" );
      |          ^~~
prog.cc:124:10: warning: unused variable 'e23' [-Wunused-variable]
  124 |     auto e23 = storage<E2>::create ( "f" );
      |          ^~~
Initializing ...
Initializing ...
Creating ...
1
emplace_back
1
emplace_back
1
emplace_back
1
emplace_back
1
emplace_back
1
emplace_back
1
placement new
1
placement new
Starting loop size 2
store ...
A : 1
AA : 1
C : 1
store ...
d : 1
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
Signal:
Aborted