The following code is accepted, contrary to clause 5.2.4:

typedef int C;
typedef double D;

void
f ()
{
  C o;

  o.D::~C ();
}


-- 
           Summary: g++ does not check first type name in pseudo-destructor-
                    name
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amylaar at gcc dot gnu dot org


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

Reply via email to