https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68141
Bug ID: 68141 Summary: go/gofrontend/import-archive.cc: 2 * poor choice of function parameter type ? Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: dcb314 at hotmail dot com CC: cmang at google dot com Target Milestone: --- 1. [trunk/gcc/go/gofrontend/import-archive.cc:471]: (performance) Function parameter 'p' should be passed by reference. Source code is operator==(const Archive_iterator p) const Maybe better code operator==(const Archive_iterator & p) const 2. [trunk/gcc/go/gofrontend/import-archive.cc:475]: (performance) Function parameter 'p' should be passed by reference. Source code is operator!=(const Archive_iterator p) const Duplicate.