http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51064

             Bug #: 51064
           Summary: False Positive for -Wparentheses
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: sascha.c...@gmx.net


Using GCC 4.6.2 ("Gentoo 4.6.2 p1.0, pie-0.45") the code

[1] template< int i, int j = ( ( i+7 ) >> 3 ) > class foo{};
[2] typedef foo< 10 > bar;

produces a false positive -Wparentheses (Suggest parentheses around '+' inside
'>>') warning on line 2.

Reply via email to