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
Showing
gcc/testsuite/g++.dg/other/return1.C
0 → 100644
Please
register
or
sign in
to comment