[Bug c++/59793] Warning to suggest making trivial non-virtual method inline
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 28 19:03:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59793
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Eugene Zelenko from comment #2)
> Something like that:
>
> class Class
> {
> private:
> int Data;
>
> public:
> int GetData() const;
> };
>
> int Class::GetData() const {
> return Data;
> }
Thanks, confirmed that there's currently no warnings for this.
More information about the Gcc-bugs
mailing list