This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Proposal for extension to GCC
- To: aoliva at redhat dot com, geoffk at cygnus dot com
- Subject: Re: Proposal for extension to GCC
- From: Mike Stump <mrs at windriver dot com>
- Date: Mon, 21 Aug 2000 13:10:01 -0700 (PDT)
- Cc: gcc at gcc dot gnu dot org
> To: Alexandre Oliva <aoliva@redhat.com>
> CC: gcc@gcc.gnu.org
> From: Geoff Keating <geoffk@cygnus.com>
> Date: 19 Aug 2000 15:39:54 -0700
> Alexandre Oliva <aoliva@redhat.com> writes:
> > Maybe C++ Coding Standards should mandate parentheses around
> > expressions, to make the disambiguation explicit.
> Perhaps G++ could produce a warning when something tricky is
> happening? Like -Wparentheses?
A warning isn't necessary. If the wrong interpretation is used, the
code most likely will fail to compile, thus producing a diagnostic.
If what the compiler does matches what the user wanted, a warning
would just be annoying.