OSDN Git Service

PR c++/39554
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Mar 2009 19:27:17 +0000 (19:27 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Mar 2009 19:27:17 +0000 (19:27 +0000)
commitf4858d06aeb586eda058b6b6baa4fc401db17f95
treedc79a6a82c49de520ee04b9143b1f107c22fa275
parentd9cee1b1a198bdd084f9c6afb3e6819a7f1bfc11
PR c++/39554
* opts.c (warn_if_disallowed_function_p): Don't assume
get_callee_fndecl must return non-NULL.

* gcc.dg/wdisallowed-functions-3.c: New test.
* g++.dg/warn/Wdisallowed-functions-3.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145094 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wdisallowed-functions-3.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/wdisallowed-functions-3.c [new file with mode: 0644]