[Bug libstdc++/82496] Optimization breaks duration_cast

2017-10-09 Thread jeff.benshetler at stackpath dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82496 --- Comment #4 from Jeff Benshetler --- My apologies. Adding -Wall shows: warning: no return statement in function returning non-void [-Wreturn-type]

[Bug c++/82496] Optimization breaks duration_cast

2017-10-09 Thread jeff.benshetler at stackpath dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82496 --- Comment #2 from Jeff Benshetler --- I confirmed that the identical problem exists on Linux for both gcc-6.4.0 and gcc-7.2.0.

[Bug c++/82496] Optimization breaks duration_cast

2017-10-09 Thread jeff.benshetler at stackpath dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82496 Jeff Benshetler changed: What|Removed |Added CC||jeff.benshetler at stackpath dot c

[Bug c++/82496] New: Optimization breaks duration_cast

2017-10-09 Thread jeff.benshetler at stackpath dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: jeff.benshetler at stackpath dot com Target Milestone: --- Created attachment 42331 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42331=edit Compiler output duration_cast always returns zero when using any level of optimizat

[Bug c++/81429] maybe_unused attribute triggers syntax error when used on first argument to a constructor

2017-07-13 Thread jeff.benshetler at stackpath dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81429 --- Comment #1 from Jeff Benshetler --- Created attachment 41747 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41747=edit Source test case that triggers the bug; corresponds to .ii file Added in an abundance of caution. No header files

[Bug c++/81429] New: maybe_unused attribute triggers syntax error when used on first argument to a constructor

2017-07-13 Thread jeff.benshetler at stackpath dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jeff.benshetler at stackpath dot com Target Milestone: --- Created attachment 41746 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41746=edit Preproces