- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- static const char[] public data member missing whe...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2011 10:25 PM
тАО03-31-2011 10:25 PM
static const char[] public data member missing when -O or puls used
- Tags:
- optimizer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2011 10:53 PM
тАО04-01-2011 10:53 PM
Re: static const char[] public data member missing when -O or puls used
>-O0 release mode
You should not use +O0, unless +O1 (the default) fails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2011 10:59 PM
тАО04-01-2011 10:59 PM
Re: static const char[] public data member missing when -O or puls used
when you use TAG. It'll be blank or core dump...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2011 02:05 AM
тАО04-02-2011 02:05 AM
Re: static const char[] public data member missing when -O or puls used
I'm not sure how it could be uninitialized.
What type of signal do you get for your abort?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2011 03:32 AM
тАО04-02-2011 03:32 AM
Re: static const char[] public data member missing when -O or puls used
In test.h
class Mytag
{
public:
static const char TAG1[];
static const char TAG2[];
static const char TAG3[];
};
in test.cpp
#include "test.h"
const char Mytag::TAG1[]="tag1";
const char Mytag::TAG2[]="tag2";
const char Mytag::TAG3[]="tag3";
in main.cpp
#include "test.h"
#include
int main()
{
std::cout<<:tag1>
return 0;
}
when you compiled with -O or plus.
it'll be a blank printed.
this case may not go wrong.
But My code contains hundreds of TAGS defined. My code fails to run the similar reason as I described above.
thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2011 02:41 PM
тАО04-02-2011 02:41 PM
Re: static const char[] public data member missing when -O or puls used
Unfortunately unless we can see how it fails, there isn't much we can do to help.
You may want to patch this to A.06.24, PHSS_40631 (11.31). There was an optimization bug with calculating addresses of data, especially if lots of catches.