To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=76653





------- Additional comments from [EMAIL PROTECTED] Wed May  2 12:15:56 +0000 
2007 -------
So, it seems gcc (at least the g++ 3.4.1 I tested) is not as clever as it could
be:  While

  ---8<---
  static void * myPointer1;
  void * myFunction1() { return myPointer1; }
  ---8<---

produces no .ctor section,

  ---8<---
  struct MyStruct {
    void * pointer;
    MyStruct(): pointer(0) {}
  };
  static MyStruct myPointer2;
  void * myFunction2() { return myPointer2.pointer; }
  ---8<---

does produce a .ctor section to (redundantly) call the MyStruct ctor for
myPointer2.  Maybe it would be better to improve gcc than to complicate the OOo
code base.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to