Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 11.0.0 20200914 (experimental)

Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
Raw compiler options
-Wswitch-bool

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a -Wswitch-bool
prog.cc: In function 'int main()':
prog.cc:5:11: warning: deleting array 'array'
    5 |    delete array;   // C4154 can't delete stack object
      |           ^~~~~
prog.cc:9:14: warning: deleting array 'array2'
    9 |    delete [] array2;   // C4154
      |              ^~~~~~
Signal:
Segmentation fault