Issue 15350 - GCC 2 Bug: calling member function in array initialises breaks build with gcc2
Summary: GCC 2 Bug: calling member function in array initialises breaks build with gcc2
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 Beta2
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 1.1 Beta2
Assignee: nickb
QA Contact: issues@porting
URL:
Keywords: merge_pending
Depends on:
Blocks:
 
Reported: 2003-06-06 03:30 UTC by Unknown
Modified: 2004-02-15 07:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
patch for xmloff/source/text/txtimp.cxx (575 bytes, patch)
2003-06-06 03:31 UTC, Unknown
no flags Details | Diff
xmloff/source/text/txtimp.cxx - #ifdef'd change to IRIX and added comment (787 bytes, patch)
2003-06-24 06:39 UTC, nickb
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-06-06 03:30:02 UTC
As the subject states, the problem lies with a member function being called in
an array initialiser. The simple fix is to assign the return value of the
function to a variable, and pass the variable into the array initialiser.
Comment 1 Unknown 2003-06-06 03:31:02 UTC
added keyword and target milestone
Comment 2 Unknown 2003-06-06 03:31:55 UTC
Created attachment 6696 [details]
patch for xmloff/source/text/txtimp.cxx
Comment 3 khendricks 2003-06-06 14:23:58 UTC
Hi, 
 
This change looks fine but again it is in danger of being reverted by the module 
owner since there is no obvious justifcation for the need for the change. 
 
I would rather you committed this with an ifdef IRIX and a small comment indicating 
gcc bug then change this for everyone and then have it reverted or ignored during 
the merge. 
 
BTW: doesn't gcc 3.3 work on Irix.  Why not move the build to a newer compiler 
without all of these issues? 
 
Approved with ifdef and comment indicating why so it can later be revisited if need 
be. 
 
Kevin 
 
 
 
Comment 4 Unknown 2003-06-16 05:23:21 UTC
re-assigning to Nick Blievers
Comment 5 Martin Hollmichel 2003-06-23 12:04:35 UTC
mh->nick,georgez: need/will this be fixed for 1.1rc ?
Comment 6 nickb 2003-06-24 01:22:14 UTC
Yes, this should be fixed for 1.1rc, I will re-work the patch and post.
Comment 7 nickb 2003-06-24 06:39:56 UTC
Created attachment 7083 [details]
xmloff/source/text/txtimp.cxx - #ifdef'd change to IRIX and added comment
Comment 8 nickb 2003-06-24 06:40:10 UTC
I dont have check in permission for 1.1, please check in
Comment 9 nickb 2003-06-27 01:49:54 UTC
Checked into cws_srx645_ooo11rc
Comment 10 Martin Hollmichel 2004-02-15 07:19:49 UTC
mark as verified
Comment 11 Martin Hollmichel 2004-02-15 07:20:34 UTC
close issue.