[Bug c/60440] Bogus -Wreturn-type warning after error

2018-10-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60440 --- Comment #11 from Eric Gallager --- (In reply to Martin Liška from comment #10) > Agree with Joseph, but it's a low priority on my list. It's kind of error > recovery and as soon you fix the first warning you should not see the second > one.

[Bug c/60440] Bogus -Wreturn-type warning after error

2018-10-22 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60440 --- Comment #10 from Martin Liška --- Agree with Joseph, but it's a low priority on my list. It's kind of error recovery and as soon you fix the first warning you should not see the second one.

[Bug c/60440] Bogus -Wreturn-type warning after error

2018-10-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60440 --- Comment #9 from joseph at codesourcery dot com --- I think it would be appropriate for the front end to generate something for return ; that avoids this warning. I don't know whether that should be a literal return of error_mark_node, or

[Bug c/60440] Bogus -Wreturn-type warning after error

2018-10-19 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60440 --- Comment #8 from Eric Gallager --- (In reply to jos...@codesourcery.com from comment #7) > If CC:ing me on a bug, please always state the specific question on which > you want an opinion; don't CC me simply because I maintain the relevant >

[Bug c/60440] Bogus -Wreturn-type warning after error

2018-10-19 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60440 --- Comment #7 from joseph at codesourcery dot com --- If CC:ing me on a bug, please always state the specific question on which you want an opinion; don't CC me simply because I maintain the relevant part of the compiler (I read gcc-bugs) or

[Bug c/60440] Bogus -Wreturn-type warning after error

2018-10-18 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60440 Eric Gallager changed: What|Removed |Added CC||joseph at codesourcery dot com ---

[Bug c/60440] Bogus -Wreturn-type warning after error

2018-07-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60440 Martin Liška changed: What|Removed |Added CC||jason at gcc dot gnu.org,

[Bug c/60440] Bogus -Wreturn-type warning after error

2018-07-18 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60440 --- Comment #4 from Eric Gallager --- (In reply to Martin Liška from comment #3) > Thanks for CC. Patches are currently under review. > About this PR: as 'b' is undeclared, the whole statement with the expression > is ignored and we have: > >

[Bug c/60440] Bogus -Wreturn-type warning after error

2017-10-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60440 --- Comment #3 from Martin Liška --- Thanks for CC. Patches are currently under review. About this PR: as 'b' is undeclared, the whole statement with the expression is ignored and we have: (gdb) p debug_function(cfun->decl, 0) f (int a) {

[Bug c/60440] Bogus -Wreturn-type warning after error

2017-10-18 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60440 Eric Gallager changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment

[Bug c/60440] Bogus -Wreturn-type warning after error

2014-10-12 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60440 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added Keywords||diagnostic