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++/54059] g++ silently omits code that creates a std::chrono::millisecond temporary


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

--- Comment #1 from Jason Toffaletti <jason at cornsyrup dot org> 2012-07-20 23:11:37 UTC ---
$ g++-4.7 -c -g -Wa,-alh -std=c++11 bug.cc
<snip>
 155                    .LEHE0:
  13:bug.cc        ****     unsigned int a = 200;
 156                            .loc 2 13 0 discriminator 1
 157 0035 C745ECC8              movl    $200, -20(%rbp)
 157      000000
  14:bug.cc        ****     foo f2(std::chrono::milliseconds(a));
  15:bug.cc        ****     return 0;
 158                            .loc 2 15 0 discriminator 1
 159 003c B8000000              movl    $0, %eax
 159      00
 160 0041 EB08                  jmp     .L9
 161                    .L8:
 162 0043 4889C7                movq    %rax, %rdi
 163                    .LEHB1:
 164 0046 E8000000              call    _Unwind_Resume
 164      00
 165                    .LEHE1:
 166                    .L9:
 167                    .LBE4:
  16:bug.cc        **** }
<snip>


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