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

            Bug ID: 83033
           Summary: aarch64/cortex-a57-fma-steering.c: 3 * poor C++ style
                    ?
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

1.

aarch64/cortex-a57-fma-steering.c:133]: (style) class 'fma_node' does not have
a copy constructor which is recommended since the class contains a pointer to
allocated memory.

2.

aarch64/cortex-a57-fma-steering.c:189]: (style) class 'func_fma_steering' does
not have a copy constructor which is recommended since the class contains a
pointer to allocated memory.

3.

aarch64/cortex-a57-fma-steering.c:99]: (style) class 'fma_forest' does not have
a copy constructor which is recommended since the class contains a pointer to
allocated memory.


Poor C++ style to have ctor, dtor but no copy-ctor. If objects
of the class aren't supposed to be copied, then suggest put the
copy-ctor in the private section.

Reply via email to