https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80458
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |msebor at gcc dot gnu.org Resolution|--- |DUPLICATE Known to fail| |4.1.3, 4.3.5, 4.4.7, 4.8.5, | |4.9.4, 5.4.0, 6.4.0, 7.3.0, | |8.2.0, 9.0 --- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> --- I believe this is a duplicate of the ancient bug 21678 that affects both C and C++: $ cat pr80458.C && gcc -S -Wall -Wextra -xc pr80458.C __attribute__ ((always_inline)) inline int f (int i) { if (!i) __builtin_abort (); } Clang diagnoses the problem as expected, as does ICC: pr80458.C:5:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ *** This bug has been marked as a duplicate of bug 21678 ***