From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9785 invoked by alias); 9 Nov 2005 20:24:22 -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 9772 invoked by uid 48); 9 Nov 2005 20:24:20 -0000 Date: Wed, 09 Nov 2005 20:24:00 -0000 Message-ID: <20051109202420.9771.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/24761] [4.0/4.1 Regression] 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: "pinskia at gcc dot gnu dot org" X-SW-Source: 2005-11/txt/msg01336.txt.bz2 List-Id: ------- Comment #4 from pinskia at gcc dot gnu dot org 2005-11-09 20:24 ------- Simplified example: template int f(int i) { asm("%0 %1 " : "+r"(i) ); return i; } int main(void) { f<0>(0)+ f<1>(0); } ----- -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |critical Status|UNCONFIRMED |NEW Component|inline-asm |c++ Ever Confirmed|0 |1 Keywords| |wrong-code Known to fail| |2.95.3 4.0.0 4.1.0 Known to work| |3.4.0 3.3.3 3.2.3 3.0.4 Last reconfirmed|0000-00-00 00:00:00 |2005-11-09 20:24:19 date| | Summary|Missing register load before|[4.0/4.1 Regression] Missing |inline asm in templated |register load before inline |function causes SIGSEGV |asm in templated function | |causes SIGSEGV Target Milestone|--- |4.0.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24761