]> gcc.gnu.org Git - gcc.git/commit
re PR c++/21117 (ICE after error about returning an incomplete type)
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 12 Oct 2005 18:02:52 +0000 (18:02 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 12 Oct 2005 18:02:52 +0000 (18:02 +0000)
commit51b15ede491940fcc66789e704474a67387ae705
tree28c8ceb85e19b95157c495f5cb3810b89e15b055
parenta4d25453fa85f413a7b1e61d989a90a32b6f7d09
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
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/return1.C [new file with mode: 0644]
This page took 0.059441 seconds and 5 git commands to generate.