diff options
author | nathan <> | 2005-10-12 17:02:52 +0000 |
---|---|---|
committer | nathan <> | 2005-10-12 17:02:52 +0000 |
commit | d82d6ae01dcca19d5fbb3e57f1802f76314ee81e (patch) | |
tree | 28c8ceb85e19b95157c495f5cb3810b89e15b055 /gcc/cp/ChangeLog | |
parent | 12d5800e7802bbe60d3fd6ca0b961a62f01fa73f (diff) |
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.
Diffstat (limited to 'gcc/cp/ChangeLog')
-rw-r--r-- | gcc/cp/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 23eeadec61c..a94a3fb674b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,11 @@ +2005-10-12 Nathan Sidwell <nathan@codesourcery.com> + + 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. + 2005-10-12 David Edelsohn <edelsohn@gnu.org> PR c++/23730 |