[Bug c++/21678] Using inline disables warnings about missing return statements
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 9 22:06:16 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21678
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #4)
> Actually with inline functions we don't reach building the cfg but throw
> away the function early:
I think that's a mistake; we shouldn't throw away the function until after
we've done enough to check for (some?) warnings. Inline functions usually
aren't big enough for this to make a significant difference to compile time.
More information about the Gcc-bugs
mailing list