-Wdisallowed-function-list with any value fails when #including <algorithm>. Tested with SVN r145051:
$ gcc -dumpversion 4.4.0 $ cat disallow_fault.cc #if OPT == 1 #include <algorithm> #endif $ g++ -DOPT=0 -c -Wdisallowed-function-list=BOGUS disallow_fault.cc $ g++ -DOPT=1 -c -Wdisallowed-function-list=BOGUS disallow_fault.cc In file included from /usr/local/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/bits/stl_pair.h:65, from /usr/local/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/bits/stl_algobase.h:71, from /usr/local/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/algorithm:66, from disallow_fault.cc:2: /usr/local/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/bits/move.h: In function void std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm]): /usr/local/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/bits/move.h:98: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- Summary: -Wdisallowed-function-list fails when #including <algorithm> Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc at gaul dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39554