public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dong jin" <zdjchina@hotmail.com>
To: gcc-bugs@gcc.gnu.org
Subject: Is it a bug of gcc
Date: Sat, 03 Jan 2004 06:39:00 -0000	[thread overview]
Message-ID: <BAY13-F64rbKFnfM41N0004751a@hotmail.com> (raw)

Dear Sir:
  Happy new to you.
  when  I used gcc to compile my a very small program, which had been put a 
bug by me for a test.
when I finished compiling, and run it, It run well without any problem. but 
in fact it has very clear logical error. why? I really  appreciate your 
sharing this information.
I hope to get message "Segmentation fault", but nothing happened.
the follow is the little program.
********************************
#include <stdio.h>
int foo(int n){
     return 3*n;
}
int main (void){
    int i, *p;
    int tmp[5];  /*contain five int*/
    p= tmp;
     for (i = 0; i<10; i++){
        *p++ = foo(i);
    }
    return 0;
}

the CPU is: Pentium III, the version of gcc is GCC-3.3.2

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


             reply	other threads:[~2004-01-03  6:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-03  6:39 dong jin [this message]
2004-01-06 19:23 ` Jim Wilson

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=BAY13-F64rbKFnfM41N0004751a@hotmail.com \
    --to=zdjchina@hotmail.com \
    --cc=gcc-bugs@gcc.gnu.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).