Package: clang-3.6
Version: 1:3.6-2

I'm not sure if this is a bug in Clang or in Glibc.

richard@deodand:~/junk$ cat t.c
#include <stdio.h>
#include <wchar.h>

int main(void) {
  FILE *fp = fopen("/dev/null", "r");
  return printf("initial orientation: %d\n", fwide(fp, 0));
}
richard@deodand:~/junk$ clang-3.6 -fsanitize=address -o t t.c
richard@deodand:~/junk$ ./t
initial orientation: -1
richard@deodand:~/junk$ clang-3.6 -o t t.c
richard@deodand:~/junk$ ./t
initial orientation: 0
richard@deodand:~/junk$ gcc -o t t.c
richard@deodand:~/junk$ ./t
initial orientation: 0

ii  clang-3.6      1:3.6-2      i386         C, C++ and Objective-C
compiler (
ii  gcc-4.9        4.9.2-16     i386         GNU C compiler
ii  libc6:i386     2.19-18      i386         GNU C Library: Shared libraries

(I would check with clang-3.7 but #779785.)

ttfn/rjk


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to