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-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$


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