https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480

Pedro80 <mtlroom at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mtlroom at hotmail dot com

--- Comment #10 from Pedro80 <mtlroom at hotmail dot com> ---
What an annoying bug, can this finally be fixed?!
Our code base heavily relies on this feature alone as it's used in reflection
code to specialize templates for certain types and it's done by expansion of
preprocessor macro.
This bug alone prevents us from using gcc as we heavily use this perfectly
normal code:

namespace NS1 {
  namespace NS2 {
    template<class T> int someFunction();
  }
}

#define REGISTER(type) template<>NS1::NS2::someFunction<type>() { return
something; }

and then that REGISTER macro can be used in global namespace or inside NS1 or
NS2.

Reply via email to