[Bug c++/51064] New: False Positive for -Wparentheses
sascha.cunz at gmx dot net
gcc-bugzilla@gcc.gnu.org
Wed Nov 9 15:00:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: sascha.cunz@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.
More information about the Gcc-bugs
mailing list