[Bug tree-optimization/78969] bogus snprintf truncation warning due to missing range info

2018-05-15 Thread john at jlindgren dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78969 John Lindgren changed: What|Removed |Added CC||john at jlindgren dot net --- Comment

[Bug c++/80985] -Wnoexcept-type should not produce a warning for inlined template functions

2017-06-06 Thread john at jlindgren dot net
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

[Bug c++/80985] New: -Wnoexcept-type should not produce a warning for inlined template functions

2017-06-05 Thread john at jlindgren dot net
: 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