[Bug c++/11856] unsigned warning in template
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Tue May 15 15:22:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11856
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.8.0
--- Comment #34 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-15 15:20:28 UTC ---
This is fixed in mainline in Rev. 187542 with this commit:
/cp
2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/11856
* pt.c (tsubst_copy_and_build): Increase / decrease
c_inhibit_evaluation_warnings around build_x_binary_op call.
/c-family
2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/11856
* c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
/testsuite
2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/11856
* g++.dg/warn/Wtype-limits.C: Don't warn in templates.
* g++.dg/warn/Wtype-limits-Wextra.C: Likewise.
More information about the Gcc-bugs
mailing list