[Bug c++/22136] [4.1/4.2 regression] Rejects old-style using declaration

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jan 18 22:25:00 GMT 2006



------- Comment #17 from mmitchel at gcc dot gnu dot org  2006-01-18 22:25 -------
In retrospect, I wonder if we should be complaining about a using-declaration
in a template in the first place.  

For example, is:

  struct X { void f(); };

  template <typename T>
  struct S : public T {
    using X::f;
  };

actually invalid? 

Both EDG and G++ complain about this (saying that X is not a base class of
S<T>), but should that matter at this stage?


-- 


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



More information about the Gcc-bugs mailing list