This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++ template bug
- To: root at ptpp09 dot phy dot tu-dresden dot de
- Subject: Re: c++ template bug
- From: Mark Mitchell <mark at markmitchell dot com>
- Date: Tue, 28 Jul 1998 10:36:55 -0700
- CC: egcs-bugs at cygnus dot com
- References: <199807281348.PAA12304@ptpp09.phy.tu-dresden.de>
- Reply-to: mark at markmitchell dot com
>>>>> "root" == root <root@ptpp09.phy.tu-dresden.de> writes:
root> The following code compiles fine under g++ 2.8.1 and
root> egcs-1.0.2, but not under the current egcs.
root> $ cat h.cc template<class T> class A { public: void f(); };
root> class B : public A<int> { public: void f(); };
root> int main() { B b; B& b1 = b; b1.A<int>::f(); }
I would have figured I had broken this with the changes I made last
night, were it not for the fact that this appears to happen on the 1.1
branch as well as the mainline.
--
Mark Mitchell mark@markmitchell.com
Mark Mitchell Consulting http://www.markmitchell.com