GCC produces a duplicate 'duplicate' diagnostic ;-) since GCC 3.4.0
for the following testcase:

  struct A
  {
    friend friend void foo();
  };

bug.cc:3: error: duplicate 'friend'
bug.cc:3: error: duplicate 'friend'

I'll post a patch soon.


-- 
           Summary: [3.4/4.0/4.1/4.2 regression] duplicate 'duplicate'
                    diagnostic
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: diagnostic, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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

Reply via email to