From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12487 invoked by alias); 9 Nov 2005 19:46:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 12461 invoked by uid 48); 9 Nov 2005 19:46:28 -0000 Date: Wed, 09 Nov 2005 19:46:00 -0000 Message-ID: <20051109194628.12460.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug inline-asm/24761] Missing register load before inline asm in templated function causes SIGSEGV In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "krzysiek-gcc dot gnu dot org at lichota dot net" X-SW-Source: 2005-11/txt/msg01328.txt.bz2 List-Id: ------- Comment #1 from krzysiek-gcc dot gnu dot org at lichota dot net 2005-11-09 19:46 ------- Created an attachment (id=10193) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10193&action=view) Testcase for the bug This is the testcase. Compile with: g++-4.0 -save-temps -fPIC -ggdb3 -Wno-non-virtual-dtor -O0 -pthread -fkeep-inline-functions testcase10.cpp When both calls to bar() are instantiated, the segfault occurs. When only one is instantiated (the other is commented out), it works correctly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24761