[Bug c++/65309] [Regression] Executes wrong function inside an anonymous namespace on runtime
gcc at bobbyperu dot info
gcc-bugzilla@gcc.gnu.org
Wed Mar 4 11:32:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65309
Sergio Martins <gcc at bobbyperu dot info> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gcc at bobbyperu dot info
--- Comment #8 from Sergio Martins <gcc at bobbyperu dot info> ---
gcc-4.9.2 $ nm gccbug | c++filt | grep operator
00000000004008ea W GlobalStatic<Bar, (anonymous
namespace)::innerFunction()>::operator()()
00000000004008ea W GlobalStatic<Bar, (anonymous
namespace)::innerFunction()>::operator()()
gcc-4.8.4 $ nm gccbug | c++filt | grep operator
00000000004008cc t GlobalStatic<Bar, (anonymous
namespace)::innerFunction()>::operator()()
00000000004009a4 t GlobalStatic<Bar, (anonymous
namespace)::innerFunction()>::operator()()
With 4.9.2 the address of both operator()() is the same
More information about the Gcc-bugs
mailing list