[LLVMbugs] [Bug 6976] autoconf test for <stdbool.h> fails

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 30 13:18:16 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=6976

Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Chris Lattner <clattner at apple.com> 2010-04-30 15:18:16 CDT ---
This autoconf test is generating non-compliant code, and emulating GCC's bug
would be non-trivial.  This:

  &(diags+5)[-1] == &diags[4]

is not an integer constant expression, therefore it can't be used to initialize
a global in C.  Perhaps the xlcbug case can be ifdef'd with an xlc-specific
macro or something.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list