[Bug c++/55528] New: g++ 4.5.2 crash when compiling template function containing asm
vahagn.khachatryan at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Nov 29 09:19:00 GMT 2012
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 <http://gcc.gnu.org/bugs.html> 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
More information about the Gcc-bugs
mailing list