This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/14133] New: Duplicate diagnostics on redeclaration


void f();
        void f(int, ...);

yields duplicate diagnostics:

t-dupdiag.c:2: error: conflicting types for 'f'
t-dupdiag.c:2: note: a parameter list with an ellipsis can't match an empty
parameter name list declaration
t-dupdiag.c:1: error: previous declaration of 'f' was here
t-dupdiag.c:2: error: conflicting types for 'f'
t-dupdiag.c:2: note: a parameter list with an ellipsis can't match an empty
parameter name list declaration
t-dupdiag.c:1: error: previous declaration of 'f' was here

Caused by one of Zack's patches.  Previously mentioned in mail but
now filing a bug to track it as a regression.

-- 
           Summary: Duplicate diagnostics on redeclaration
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: zack at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]