From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2682 invoked by alias); 10 Aug 2010 23:08:25 -0000 Received: (qmail 2615 invoked by uid 48); 10 Aug 2010 23:08:08 -0000 Date: Tue, 10 Aug 2010 23:08:00 -0000 Message-ID: <20100810230808.2614.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: "pinskia at gcc dot gnu dot org" 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/msg00780.txt.bz2 ------- Comment #7 from pinskia at gcc dot gnu dot org 2010-08-10 23:08 ------- >correct results. There is no correct results since you are depending on undefined behavior. It is not a short coming of GCC but rather the source you are trying to port. The code is not portable at all. It will not work on other compilers besides GCC. It will not work on other targets where MS had a compiler (like their PowerPC Windows machines [xbox and WinNT 3.5 and such]). -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45249