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++/9447] [3.4 regression] using Base<T>::member does not work


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$


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