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: 31 Jul 2003 07:34:07 -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-31 07:34 -------
My second test case in bugreport 11467 doesn't really work:
it passes the first parse, but fails when instantiated:
hydra:~/c/proba$ cat templ_base3.cc
template <typename T> struct Base {
int i() { return 0; }
};
template <typename T> struct Derived : public Base<T> {
using Base<T>::i;
int get_i(); { return i(); }
};
int
main()
{
Derived<int> a;
return a.get_i();
}
hydra:~/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 20030731 (experimental)
hydra:~/c/proba$ g++-cvs templ_base3.cc
templ_base3.cc:8: error: expected unqualified-id
zsh: exit 1 g++-cvs templ_base3.cc
hydra:~/c/proba$