https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94766
Bug ID: 94766 Summary: gcc/go/gofrontend/gogo.h:1076:25: performance: Function parameter 'afnname' should be passed by const reference. [passedByValue] Product: gcc Version: 10.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: --- Source code is Specific_type_function(Type* atype, Named_type* aname, int64_t asize, Specific_type_function_kind akind, const std::string afnname, Function_type* afntype) Suggest new code Specific_type_function(Type* atype, Named_type* aname, int64_t asize, Specific_type_function_kind akind, const std::string & afnname, Function_type* afntype)