https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78969
John Lindgren changed:
What|Removed |Added
CC||john at jlindgren dot net
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80985
--- Comment #2 from John Lindgren ---
(In reply to Jonathan Wakely from comment #1)
> template
> int call (Func f)
> {
> static int counter;
> f ();
> return ++counter;
> }
Yes, this is a different example in which the warning does m
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: john at jlindgren dot net
Target Milestone: ---
This simple C++ example generates a warning with gcc 7.1.1:
template
void call (Func f)
{
f ();
}
void func () noexcept