This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77887] -Wimplicit-fallthrough fails to trigger in an unused function template specialisation
- From: "marc.mutz at kdab dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 07 Oct 2016 23:32:51 +0000
- Subject: [Bug c++/77887] -Wimplicit-fallthrough fails to trigger in an unused function template specialisation
- Auto-submitted: auto-generated
- References: <bug-77887-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77887
--- Comment #2 from Marc Mutz <marc.mutz at kdab dot com> ---
Created attachment 39772
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39772&action=edit
Expanded version of test-case for 77886, adding an unused inline non-template
overload of the function template
Findings:
l.30 \ l.29 template specialisation overload
inline - doesn"t warn - doesn't warn
non-inline + warns + warns