Gcc indeed doesn't seem to complain, however, there was a reason why I remembered there was a warning, and it's a different compiler. Borland C 3.1 has such a warning.

Update: I recreated a variant of the screenshot I've linked to and made a text export. Non-ascii characters are wrong so the image I linked to is still better, but I copy the text version here in case you can't view the image and because it's not hosted on perlmonks.

= File Edit Search Run Compile Debug Project Options Wind +ow Help +--------------------------------- \TEMP\A.C ------------------------- +---2-----+ |#include <stdio.h> + | |int +-[_]---------- About ----- +---------+ |main(void) { | + | | return(1 << 5 >> 1); | Borland C++ + | |} | + | | | Version 3.1 + | | | + | | | Copyright (c) 1990, 19 +92 by | | | + | | | Borland International, + Inc. | | | + | | | OK _ + | | | ________ + | | +-------------------------- +---------+ +------- 4:21 -------------------------------------------------------- +---------+ +-[_]------------------------------ Message -------------------------- +---3-[o]-+ | Compiling ..\TEMP\A.C: + ^ |*Warning ..\TEMP\A.C 4: Ambiguous operators need parentheses + _ | Linking A.EXE: + _ | + _ | + v +-<___________________________________________________________________ +_______>-+ F1 Help | Accept the settings in this dialog box

In reply to Re^3: Beautiful code I wrote ;-) by ambrus
in thread Beautiful code I wrote ;-) by Skeeve

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.