diff options
| author | Joseph Myers <joseph@codesourcery.com> | 2005-02-03 02:21:10 +0000 |
|---|---|---|
| committer | Joseph Myers <jsm28@gcc.gnu.org> | 2005-02-03 02:21:10 +0000 |
| commit | 73aea290cc5417e4025eb92d95afaf1eeab73631 (patch) | |
| tree | 364e34ebace79fcfdc6374fb770c5ba7d7e4e33e /libcpp/include/cpplib.h | |
| parent | 1f732f61ea2ac643e30b8068ee3f6737f07de271 (diff) | |
| download | gcc-73aea290cc5417e4025eb92d95afaf1eeab73631.zip gcc-73aea290cc5417e4025eb92d95afaf1eeab73631.tar.gz gcc-73aea290cc5417e4025eb92d95afaf1eeab73631.tar.bz2 | |
re PR c/17807 (No warning/error for undefined local function.)
PR c/17807
* c-decl.c (undef_nested_function): New variable.
(pop_scope): Diagnose undefined nested functions.
(finish_function): Don't attempt cgraph processing or genericizing
if current top-level function contained an undefined nested
function. Reset undef_nested_function at the end of a top-level
function.
testsuite:
* gcc.dg/nested-func-3.c: New test.
* gcc.dg/pr18596-3.c: Expect error for undefined nested function.
From-SVN: r94645
Diffstat (limited to 'libcpp/include/cpplib.h')
0 files changed, 0 insertions, 0 deletions
