int i(int j, int *k);

void f() {
  i(
    0,
    1 /*<--- here the error should be issued*/
  ); /*<--- here the error is issued*/
}


-- 
           Summary: Error about bad function argument isn't issued on the
                    line of the argument but on the line where function ends
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: yuri at tsoft dot com


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

Reply via email to