Mark Mitchell <[EMAIL PROTECTED]> writes:

| Gabriel Dos Reis wrote:
| 
| > The resason here is that, after we complained that A is incomplete
| > (therefore cannot be used as return type in the function definition),
| > cp/decl.c:check_function_type() changes the return type to void, thus 
| > giving misleading diagnostic later.
| 
| That's the bug.  It should change the return type to error_mark_node,
| and then the code that check returns should be silent in that case.

Makes sense.  I'll implement that approach.

-- Gaby

Reply via email to