This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[C++Patch] PR 51421


Hi,

a rather simple issue. In mainline we have machinery to detect broken uses of auto variables before deduction, for which mark_used is designed to error out and return false to the caller. However, in the specific cases pointed out in this PR the error recovery is not Ok, because mark_used doesn't return false after error and anyway the caller - finish_id_expression - doesn't check the return value.

Tested x86_64-linux.

Thanks,
Paolo.

//////////////////////////

Attachment: CL_51421
Description: Text document

Attachment: patch_51421
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]