This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/18740] Execution-time sizeof drops side effects


------- Additional Comments From bangerth at dealii dot org  2004-11-30 22:24 -------
That's not a bug. The standard says this: 
 
  5.3.3  Sizeof                                            [expr.sizeof] 
 
1 The  sizeof  operator  yields  the  number  of  bytes  in  the  object 
  representation of its operand.  The operand is either  an  expression, 
  which  is  not  evaluated,  or  a  parenthesized  type-id. 
 
W. 

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


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18740


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]