[Bug c++/13587] Misleading error message

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jan 6 18:33:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-06 18:32 -------

pr13587.cc:5: error: specializing `struct Hide::Foo<c, int>' in different namespace
pr13587.cc:2: error:   from definition of `template<class a, class b> struct Hide::Foo'

No the error message is correct you have to be in the same namespace when specializing.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |diagnostic
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list