This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [libstdc++] more operator precedence bugs
- From: Sylvain Pion <Sylvain dot Pion at sophia dot inria dot fr>
- To: rth at twiddle dot net, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Cc: Sylvain Pion <Sylvain dot Pion at sophia dot inria dot fr>
- Date: Fri, 12 Apr 2002 20:06:57 +0200
- Subject: Re: [libstdc++] more operator precedence bugs
> - if (__mode & ios_base::ate
> + if ((__mode & ios_base::ate)
I don't understand why these parenthesis are needed.
What am I missing ?
Maybe GCC could warn about these kind of possible bugs ?
I know Visual C++ emits the following warning in this situation :
: warning C4554: '&' : check operator precedence for possible error; use
parentheses to clarify precedence
--
Sylvain