This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22136] [4.1/4.2 regression] Rejects old-style using declaration
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2006 22:25:20 -0000
- Subject: [Bug c++/22136] [4.1/4.2 regression] Rejects old-style using declaration
- References: <bug-22136-102@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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