Re: dependent names in templates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dima Sorkin <dima.sorkin@xxxxxxxxx> writes:

| Hi.
|   Consider the following case :
| template<typename T> struct Base{
|      void f() const {}
|      int X;
| };
| 
| template<typename T> struct Derived : public Base<T> {
|      void g() {
|          X = X+X;
|          f();   // LINE*
|      }
| };
| 
| gcc does not require to write in "line*" : "this->f()", "this->X"
| But there are compilers that do require, they cannot
| resolve the symbol "f()" otherwise.

Which version of GCC?  See changes for GCC-3.4.x

-- Gaby

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux