This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11856] unsigned warning in template


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]