[Bug c/100068] inconsistent handling of noreturn on nested function declarations

2021-04-13 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100068 --- Comment #4 from Martin Sebor --- The latter: in f1() warn for the redeclaration of g1() in the nested scope. That's where GCC and other compilers differ.

[Bug c/100068] inconsistent handling of noreturn on nested function declarations

2021-04-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100068 --- Comment #3 from Andrew Pinski --- What diagnostic is missing? That there is unreachable code after the noreturn functions? There are other bugs for that already? Or diagnostic when merging the two decls and one was noreturn and the other

[Bug c/100068] inconsistent handling of noreturn on nested function declarations

2021-04-13 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100068 Martin Sebor changed: What|Removed |Added Keywords|wrong-code |diagnostic --- Comment #2 from Martin Se

[Bug c/100068] inconsistent handling of noreturn on nested function declarations

2021-04-13 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100068 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill