[Bug inline-asm/24761] Missing register load before inline asm in templated function causes SIGSEGV
krzysiek-gcc dot gnu dot org at lichota dot net
gcc-bugzilla@gcc.gnu.org
Wed Nov 9 19:46:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list