------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-23 
12:30 -------
Ok, it is only a bug with templates.
And here is the shortest testcase:
# 1 "t.cc"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "t.cc"
# 1 "include/t.h" 1 3 4
template <int> class t
{
  virtual void f();
};
# 2 "t.cc" 2

void f(void)
{
  t<1> h;
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-23 12:30:26
               date|                            |
            Summary|gcc 4.0 new warning: class  |[4.0 Regression] template
                   |has virtual functions but   |"class has virtual functions
                   |non-virtual destructor is   |... " is not suppressed with
                   |not suppressed with -isystem|-isystem
   Target Milestone|---                         |4.0.0


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

Reply via email to