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/17168] New: incorrect value passed to subroutine


/*

% ./config.guess
ia64-unknown-linux-gnu
%
% gcc -v
Reading specs from /u/kminola/public/gcc-3.4.1/ia64-Linux/bin/../lib/gcc/ia64-
unknown-linux-gnu/3.4.1/specs
Configured with: /u/kminola/public/gcc-3.4.1/src/gcc-3.4.1/configure --enable-
languages=c --prefix=/u/kminola/public/gcc-3.4.1/ia64-Linux
Thread model: posix
gcc version 3.4.1
%

exists in gcc-3.5-20040711 */

#include <stdio.h>

void
foo(D)
long D;
{
  if (D < 0) {
    printf("correct\n");
  } else {
    printf("bug\n");
  }
}

int
main()
{
  int D;

  D = -1;
  foo(D);
  return(0);
}

-- 
           Summary: incorrect value passed to subroutine
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kminola at eng dot umd dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: ia64-unknown-linux-gnu
  GCC host triplet: ia64-unknown-linux-gnu
GCC target triplet: ia64-unknown-linux-gnu


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


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