[Bug c++/10940] Explicit Template Specialization of Static Member Function Generates Bad Code

bangerth@dealii.org gcc-bugzilla@gcc.gnu.org
Thu May 22 18:43:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10940


bangerth@dealii.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1


------- Additional Comments From bangerth@dealii.org  2003-05-22 18:34 -------
Confirmed. Crashes from 3.0 to present mainline. Optimization flags are irrelevant.

There's some stack corruption going on, since it crashes here:
(gdb) bt
#0  0x08048526 in void o<32>::do_add<int>(int*, int) (this=0xbffff178, 
    p=0x2000, v=-1073745540) at x.cc:12
#1  0x08048518 in add<int> (p=0xbffff178, v=8192) at x.cc:18
#2  0x080484ca in main () at x.cc:24
#3  0x4012a9ed in __libc_start_main () from /lib/libc.so.6

Note that in do_add, p=0x2000 and v=invalid, whereas we really should have
p be a reasonable pointer and v having the value 0x2000!

W.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list