This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50921] GCC cannot find dependent conversion-function-id even if there's a using declaration for it
- From: "schaub.johannes at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 30 Oct 2011 13:54:21 +0000
- Subject: [Bug c++/50921] GCC cannot find dependent conversion-function-id even if there's a using declaration for it
- Auto-submitted: auto-generated
- References: <bug-50921-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50921
--- Comment #1 from Johannes Schaub <schaub.johannes at googlemail dot com> 2011-10-30 13:54:21 UTC ---
Someone notified me that you can substantially reduce this to the following
template<typename T>
struct Base {
operator int();
};
template<typename T>
struct Derived : Base<T> {
using Base<T>::operator int;
void f() {
int x = operator int();
(void) x;
}
};
int main() {
Derived<int> d;
d.f();
}
Same diagnostic is given.