This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/9447] [3.4 regression] using Base<T>::member does not work
- From: "benko at sztaki dot hu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jul 2003 15:37:15 -0000
- Subject: [Bug c++/9447] [3.4 regression] using Base<T>::member does not work
- References: <20030127085600.9447.rguenth@tat.physik.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9447
------- Additional Comments From benko at sztaki dot hu 2003-07-29 15:37 -------
Please reopen the bug. (Bugzilla didn't let me, since I'm not
the reporter, just the reproter of a duplicate.)
The original testcase is fixed, but the following doesn't work:
ios:~/c/proba$ cat templ_base2.cc
template <typename T> struct Base {
T i;
};
template <typename T> struct Derived : public Base<T> {
using Base<T>::i;
int get_i() { return i.f(); }
};
ios:~/c/proba$ g++-cvs templ_base2.cc
templ_base2.cc: In member function `int Derived<T>::get_i()':
templ_base2.cc:8: error: insufficient contextual information to determine type
zsh: exit 1 g++-cvs templ_base2.cc
ios:~/c/proba$ g++-cvs -v
Reading specs from /gml/shared/gcc-cvs/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
Configured with: ../gcc/configure --prefix=/gml/shared/gcc-cvs
--enable-languages=c++
Thread model: posix
gcc version 3.4 20030729 (experimental)
ios:~/c/proba$