From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7268 invoked by alias); 29 Nov 2012 09:19:29 -0000 Received: (qmail 7101 invoked by uid 48); 29 Nov 2012 09:19:09 -0000 From: "vahagn.khachatryan at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55528] New: g++ 4.5.2 crash when compiling template function containing asm Date: Thu, 29 Nov 2012 09:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: vahagn.khachatryan at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-11/txt/msg02843.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55528 Bug #: 55528 Summary: g++ 4.5.2 crash when compiling template function containing asm Classification: Unclassified Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: vahagn.khachatryan@gmail.com Created attachment 28827 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28827 source file Hi Folks, g++ 4.5.2 segfaults when compiling a template function containing inline assembler. I have attached the source file. Here is how it crashes: [vahagnk@icwb-nemrut test]$ g++ test_i32_overflow.cpp test_i32_overflow.cpp: In function \u2018C add2(C, C) [with C = int]\u2019: test_i32_overflow.cpp:63:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. [vahagnk@icwb-nemrut test]$ [vahagnk@icwb-nemrut test]$ cat /etc/motd Linux 2.6.9-89.ELlargesmp x86_64 OS: RedHat Enterprise Linux 4.0 U8 Hostname: icwb-nemrut (vahagnk) Location: AM04 CPU: 24 x 2666 MHz, Intel(R)Xeon(R) (2 socket, six core, HT) Memory: 48 GB RAM, 82 GB Swap QSC: QSC-F [vahagnk@icwb-nemrut test]$ g++ --version g++ (GCC) 4.5.2 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Regard, Vahagn