public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gdr at integrable-solutions dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/12629] name leaks Date: Sat, 18 Oct 2003 12:27:00 -0000 [thread overview] Message-ID: <20031018113247.20295.qmail@sources.redhat.com> (raw) In-Reply-To: <20031015224509.12629.yujie.wu@hec.utah.edu> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12629 ------- Additional Comments From gdr at integrable-solutions dot net 2003-10-18 11:32 ------- Subject: Re: New: name leaks "yujie dot wu at hec dot utah dot edu" <gcc-bugzilla@gcc.gnu.org> writes: | Try the following program to reproduce the error: | | #include <cstdlib> | #include <cstdio> | | | void exit( int a = 0 ) | { | std::puts( "dddddddd" ); | std::exit( a ); | } This program is invalid: The reason is that the C funuction "exit" may have a C linkage, in which case your definition invokes undefined behaviour. In fact, all C function in GNU C++ have C linkage. -- Gaby
next prev parent reply other threads:[~2003-10-18 11:32 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-10-15 22:45 [Bug c++/12629] New: " yujie dot wu at hec dot utah dot edu 2003-10-15 22:49 ` [Bug c++/12629] " pinskia at gcc dot gnu dot org 2003-10-18 12:27 ` gdr at integrable-solutions dot net [this message] 2003-10-20 19:21 ` gdr at integrable-solutions dot net
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=20031018113247.20295.qmail@sources.redhat.com \ --to=gcc-bugzilla@gcc.gnu.org \ --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: linkBe 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).