[LLVMbugs] [Bug 3797] GNU compatibility: address of variable is not a compile-time constant

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Mar 24 08:38:49 PDT 2009


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


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID




--- Comment #8 from Chris Lattner <clattner at apple.com>  2009-03-24 10:38:47 ---
This case (cast of pointer to int on x86-64 machine) should not be accepted. 
Please see:
http://www.srcf.ucam.org/~jsm28/gcc/

for more than you ever wanted to know about constant expressions.  The fix is
to change the code to cast to long instead of int.


-- 
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