Code like:

struct A {
    struct B {};
    typedef int B;
};

does not cause an error or even a warning (even if the type A::B is used
later), it seems like the typedef is silently ignored. It used to be detected
by g++-2.95 and g++-3.3 but not since 3.4.


-- 
           Summary: duplicate nested type error has disappeared
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: marc dot glisse at normalesup dot org
  GCC host triplet: i486-linux-gnu


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

Reply via email to