------- Comment #1 from marc dot glisse at normalesup dot org 2006-12-12 18:40 ------- In gcc/cp/decl.c, I see:
if (global_scope_p (current_binding_level)) asmspec_tree = maybe_apply_renaming_pragma (decl, asmspec_tree); So if I understand correctly (it is the first time I have a look at the gcc internals), there is an explicit test that means the renaming function is only called for the global namespace. Simply removing the test (and so always executing the next line) seems to solve my problem, but I don't know if it breaks other things or slows everything down. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30112