[LLVMbugs] [Bug 13078] typeof

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 11 08:39:55 PDT 2012


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

David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dblaikie at gmail.com
         Resolution|                            |INVALID

--- Comment #2 from David Blaikie <dblaikie at gmail.com> 2012-06-11 10:39:55 CDT ---
PR3248 also provides the relevant (C) quotation here:

Per C99 6.5.3.4p2, "If the type of the operand [of a sizeof] is a variable
length array type, the operand is evaluated; otherwise, the operand is not
evaluated and the result is an integer constant."

The argument type you provided isn't variably modified, so the operand to
sizeof is not evaluated, merely used to figure out the type to determine the
size.

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