Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    If the compiler optimized it out then he must file a bug because the compiler is not allowed to optimize anything out that puts out output. I think KennyTM nailed it about line 18. Commented Jul 21, 2011 at 18:32
  • @Nightcracker: Constructors have special leeway in this regard. Commented Jul 21, 2011 at 18:34
  • @DeadMG: Nonsense. Line 18 doesn't even contain a constructor call. Commented Jul 21, 2011 at 18:41
  • @nightcracker: Unfortunately, though, constructors do have special semantics and can be optimised out even when they have side effects. It's pretty rubbish. Commented Jul 21, 2011 at 18:42