From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27630 invoked by alias); 12 Aug 2010 10:17:07 -0000 Received: (qmail 26416 invoked by uid 48); 12 Aug 2010 10:16:53 -0000 Date: Thu, 12 Aug 2010 10:17:00 -0000 Message-ID: <20100812101653.26415.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/45249] Indirect variable parameters sometimes cause segmentation fault In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rogerio at rilhas dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-08/txt/msg00965.txt.bz2 ------- Comment #57 from rogerio at rilhas dot com 2010-08-12 10:16 ------- (In reply to comment #56) > Please stop wasting your and GCC developers time. As several people have > explained, your code triggers undefined behavior in C/C++, so it can do > anything at runtime. The fact that it happens to work as you expect with some > compilers doesn't mean anything. If you choose to program in C (or C++), you > just need to follow the standard. GCC bugzilla is for reporting GCC bugs, not > for learning programming languages, look for various C forums instead. I've clearly shown the bug in my commment #51. It is a bug in the address operator. C99 says GCC shouldn't be doing that. The &format is not undefined behavior. In comment #36 Richard Guenther agrees that &X should return the stack address. GCC is not doing that. Please open your eyes and understand this. It is simple. I believe you all have the brain power to understand at least that. If you just forget all the rest and focus on &X you'll see GCC has a bug. If you fix it I can then handle the rest on my own, thank you, no need for all your rants about standards. You are the ones who shouldn't be wasting my time like this. -- rogerio at rilhas dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45249