https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96742
Bug ID: 96742 Summary: "warning: comparison of unsigned expression in ‘< 0’ is always false" with dependent values Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: wtt6 at cornell dot edu Target Milestone: --- The following code warns "comparison of unsigned expression in ‘< 0’ is always false" when compiled with 10.2.0, but not with 10.1. --- template <unsigned N> bool f(unsigned x) { return x < N; } int main() { f<0>(1); } --- This appears to be similar to bug 11856 and, in particular, its duplicate bug 45553.