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 53491


Hi,

an ICE on invalid, regression in 4.7 and 4.8. In 4.7 (vs 4.6) we started using stabilize_expr in one more place in cp_build_modify_expr without also adding a preliminary check that the expr isn't of void type, thus we can easily end up calling build_type_target_expr_with_type on it and crash.

The fix I tested could be even simpler but I guess we want to also emit the error line " in evaluation of...", like in 4.6. If you can't imagine how we could regress with this sort of fix (I can't ;) probably the issue should be also addressed in 4.7, this kind of invalid code must be quite common.

Thanks,
Paolo.

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

Attachment: CL_53491
Description: Text document

Attachment: patch_53491
Description: Text document


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