This is the mail archive of the gcc@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]

Re: Proposal for extension to GCC


> 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.

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