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

[Bug c++/29607] [DR 224] [4.2/4.3/4.4 Regression] dependent name with base classes




------- Comment #16 from rguenth at gcc dot gnu dot org  2009-03-04 12:05 -------
Testcase from comment #5 in a form that is valid if DR 224 is implemented
(and which EDG accepts without warnings and errors):

class WvLink { WvLink *data; };
class WvVectorBase
{
  class IterBase
    {
      WvLink *cur() const;
    };
};
template<class T>
class WvVector : public WvVectorBase
{
  class Iter  : public WvVector::IterBase
  {
    T *ptr() const
      {
        return static_cast<T *>(cur()->data);
      }
  };
};


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
           Priority|P3                          |P2
   Last reconfirmed|2009-03-03 21:14:04         |2009-03-04 12:05:56
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29607

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.


Reply to: