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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:4dd468a042e19ef0fdbb1c53ca4060d4cb4972c5

commit r10-6357-g4dd468a042e19ef0fdbb1c53ca4060d4cb4972c5
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Jan 30 13:12:05 2020 -0500

    c++: Fix -Wtype-limits in templates.

    When instantiating a template tsubst_copy_and_build suppresses
-Wtype-limits
    warnings about e.g. == always being false because it might not always be
    false for an instantiation with other template arguments.  But we should
    warn if the operands don't depend on template arguments.

        PR c++/82521
        * pt.c (tsubst_copy_and_build) [EQ_EXPR]: Only suppress warnings if
        the expression was dependent before substitution.

Reply via email to