[Info-vax] OpenVMS Alpha C++ Compiler Bug
Craig A. Berry
craigberry at nospam.mac.com
Wed Sep 10 22:28:58 EDT 2014
On 9/10/14, 1:46 PM, hb wrote:
> I added an "extern" to the variable "iniarray" to place it in the
> PSECT LIB$INITIALIZE. Otherwise, with C++, "const" makes it static and
> it goes into a different PSECT and the mechanism doesn't work. And as
> far as I know if iniarray is static and isn't referenced, C++ doesn't
> have to create it.
That sounds plausible, or, in lieu of working it out from first
principles, try following the example at:
<http://h71000.www7.hp.com/commercial/cplus/i64_doc/rn_exxiviv.html#heading_6.4>
as closely as possible. The fact that this example only exists in the
release notes for the Itanium compiler is probably just due to the
absence of another Alpha release since the documentation was updated.
More information about the Info-vax
mailing list