Package: clang Version: 2.6-1 Severity: normal -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi I'm attaching simple test case which fails to compile with - -Wmissing-noreturn -Werror even though the attribute is there. It fails with: /tmp/test.c:4:1: error: function could be attribute 'noreturn' [-Wmissing-noreturn] { ^ 1 diagnostic generated. - -- Michal Čihař | http://cihar.com | http://blog.cihar.com - -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.31.5-0.1-default (SMP w/2 CPU cores) Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages clang depends on: ii libc6 2.10.2-2 GNU C Library: Shared libraries ii libffi5 3.0.9~rc3-1 Foreign Function Interface library ii libgcc1 1:4.4.2-4 GCC support library ii libstdc++6 4.4.2-4 The GNU Standard C++ Library v3 Versions of packages clang recommends: ii llvm-dev 2.6-4 Low-Level Virtual Machine (LLVM), clang suggests no packages. - -- no debconf information -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAksiR/wACgkQ3DVS6DbnVgTt5ACgk0XHfuSKjhdPuz9ADu8opwyD MM0AoNVKZbW/qVjQW9lGomEc/ZpoVxEy =a7jw -----END PGP SIGNATURE-----
#include <stdlib.h> void __attribute__((noreturn)) fail(int errcode) { exit(errcode); } int main(int argc, char **argv) { if (argc == 1) { fail(1); } return 0; }