Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mwarshofsk at aol dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41508
--- Comment #2 from mwarshofsk at aol dot com 2009-09-29 19:24 ---
This is the method where I am receiving the compiler error:
enum err_stat EJPeriod::rollup( ListEmplJob src, ListEJPeriod dst,
Date startDt, Date endDt )
{
// then theres a bunch of code
--- Comment #4 from mwarshofsk at aol dot com 2009-09-29 19:32 ---
Here's the definition for that call ... I think you're on to something
String get_job_title_mgmt_ind() const { return _jobTitleMgmtInd; };
When I change the constructor to non reference paramters it seems to compile
--- Comment #7 from mwarshofsk at aol dot com 2009-09-29 20:34 ---
Comment 6 is perfect! That makes total sense. Thanks so much! Actually, I bet
the Solaris compiler is implicitly treating this same code as a const String
behind the scenes. We'll just explicitly make that promise/fix