https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71283
Eric Gallager <egall at gwmail dot gwu.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egall at gwmail dot gwu.edu --- Comment #3 from Eric Gallager <egall at gwmail dot gwu.edu> --- (In reply to Andrew Pinski from comment #2) > That is because this is C++ only option. It is listed under > https://gcc.gnu.org/onlinedocs/gcc-6.1.0/gcc/C_002b_002b-Dialect-Options. > html#C_002b_002b-Dialect-Options : > > -Wno-terminate (C++ and Objective-C++ only) > Disable the warning about a throw-expression that will immediately result in > a call to terminate. > > This is exact location for all other C++ only options are located. > > So not a bug. There are other C++-only options under "Options to Request or Suppress Warnings". For example: * -Wc++11-compat * -Wc++14-compat * -Wconditionally-supported * -Wno-conversion-null * -Wzero-as-null-pointer-constant * -Wsubobject-linkage * -Wdelete-incomplete * -Wuseless-cast * -Wsized-deallocation * -Wno-invalid-offsetof It's kind of inconsistent whether C++-only warnings are listed here or there.