This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]