https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104379

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I suspect we warn once for each CTOR clone, whilst with checking
DECL_FROM_INLINE
we excluded all but the master clone.  "from inline" is of course misleading
here.  I suppose the same issue might happen with templates where we'd warn
once per instantiation?

There's for sure a better way to exclude the CTOR/DTOR clones than checking
DECL_ABSTRACT_ORIGIN.

DECL_FROM_INLINE is nearly dead, it should probably be removed.

Reply via email to