diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2005-10-12 18:02:52 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2005-10-12 18:02:52 +0000 |
commit | 51b15ede491940fcc66789e704474a67387ae705 (patch) | |
tree | 28c8ceb85e19b95157c495f5cb3810b89e15b055 /libgfortran/io/unix.c | |
parent | a4d25453fa85f413a7b1e61d989a90a32b6f7d09 (diff) | |
download | gcc-51b15ede491940fcc66789e704474a67387ae705.zip gcc-51b15ede491940fcc66789e704474a67387ae705.tar.gz gcc-51b15ede491940fcc66789e704474a67387ae705.tar.bz2 |
re PR c++/21117 (ICE after error about returning an incomplete type)
cp:
PR c++/21117
* decl.c (check_function_type): Correctly overwrite incomplete
return type with void type.
* typeck.c (check_return_expr): If the function's return type is
void, don't try and convert a return expr.
testsuite:
PR c++/21117
* g++.dg/other/return1.C: New.
From-SVN: r105310
Diffstat (limited to 'libgfortran/io/unix.c')
0 files changed, 0 insertions, 0 deletions