Bug 28535
Summary: | gcc (g++) fails to build OpenSP, egcs++ works. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Terje Bless <link> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.0 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
URL: | http://download.sourceforge.net/openjade/OpenSP-1.5pre5.tar.gz | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2001-02-22 00:32:25 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Terje Bless
2001-02-21 04:46:19 UTC
Can you please run c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../generic -g -O2 -c nsgmls.cxx -save-temps and attach here nsgmls.ii it creates? It looks like bug in OpenSP (g++ 2.96 is much stricter and closer to ISO C++), but after looking at the preprocessed source I could tell more. Created attachment 10722 [details]
Preprosessed C++ source (-save-temps)
Ok, here is what our C++ lawyers said: The compiler is correct; the example is in error. Lookup of 'Messenger' in XRastEventHandler finds the implicit declaration of Messenger within RastEventHandler, which is inaccessible. The example should say OpenSP::Messenger. Simplified testcase is: struct Messenger { }; struct RastEventHandler : private Messenger { }; struct XRastEventHandler : public RastEventHandler { Messenger *Messenger_; }; so OpenSP should be fixed. |