https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86141

            Bug ID: 86141
           Summary: C++ Related Optimization Problem
           Product: gcc
           Version: 7.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aaron_sami_abassi at hotmail dot com
  Target Milestone: ---

Created attachment 44269
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44269&action=edit
Source code which demonstrates the optimization problem

GCC does not optimize this code correctly however LLVM, ELLCC, ZAPCC, Intel and
Microsoft compilers do.  I tried several optimization levels but none were able
to expand the function invocation inline where as the other compiler vendors
all did so with default optimization levels.

This was strictly experimental code which incidentally revealed the
optimization issue when I looked at the resulting Assembly on godbolt.org using
the various compilers.  I do not require support for the bug, thank you.

Reply via email to