[Bug c++/30112] pragma redefine_extname fails when namespaces are involved

marc dot glisse at normalesup dot org gcc-bugzilla@gcc.gnu.org
Thu Feb 22 16:20:00 GMT 2007



------- Comment #3 from marc dot glisse at normalesup dot org  2007-02-22 16:20 -------
Actually, the patch is not sufficient. With the patch, it works if the function
is in the global namespace or the pragma is before the declaration (or both),
but not for a function in the std namespace where the pragma is after the
declaration, as is the case for wcsftime in solaris iso/wchar_iso.h.

The little I understand: it seems that in c-pragma.c, for some reason,
identifier_global_value(oldname) returns 0 in this case, so the renaming is not
done.


-- 


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



More information about the Gcc-bugs mailing list