9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Rob Pike <robpike@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] copy paste bug in cc.y?
Date: Tue, 14 Oct 2014 15:45:48 -0700	[thread overview]
Message-ID: <CAKzdPgxbh7OSisQCO9pJryTFV_mbf0413xBjYVoSvLq+LQ-z4w@mail.gmail.com> (raw)
In-Reply-To: <AA00716C-7B8A-43A1-8B53-4454016F16B2@fb.com>

[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

Looks like it.

-rob


On Tue, Oct 14, 2014 at 3:11 PM, Yoann Padioleau <pad@fb.com> wrote:

>  Hi,
>
>  It’s a copy paste bug here right?
> https://code.google.com/p/ken-cc/source/browse/src/cmd/cc/cc.y#476
>
>
>    |       LSWITCH '(' cexpr ')' stmnt
>           {
>                   $$ = new(OCONST, Z, Z);
>                   $$->vconst = 0;
>                   $$->type = types[TINT];
>                   $3 = new(OSUB, $$, $3);
>
>                   $$ = new(OCONST, Z, Z);
>                   $$->vconst = 0;
>                   $$->type = types[TINT];
>                   $3 = new(OSUB, $$, $3);
>
>                   $$ = new(OSWITCH, $3, $5);
>           }
>
>
>

[-- Attachment #2: Type: text/html, Size: 6556 bytes --]

  reply	other threads:[~2014-10-14 22:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-14 22:11 Yoann Padioleau
2014-10-14 22:45 ` Rob Pike [this message]
2014-10-15  0:50   ` Rob Pike
2014-10-17 17:48     ` Yoann Padioleau
2014-10-17 19:07       ` Charles Forsyth
2014-10-17 20:00         ` Yoann Padioleau
2014-10-17 20:04           ` minux
2014-10-17 20:32             ` Yoann Padioleau
2014-10-21 17:34         ` Yoann Padioleau
2014-10-21 20:53           ` Charles Forsyth
2014-10-17 21:30       ` Charles Forsyth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKzdPgxbh7OSisQCO9pJryTFV_mbf0413xBjYVoSvLq+LQ-z4w@mail.gmail.com \
    --to=robpike@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).