1752754 Members
5290 Online
108789 Solutions
New Discussion

core dump using aCC 3.45

 

core dump using aCC 3.45

Hi,
I try to compile the following simplified example using aCC 3.45:


// begin example
#include

namespace CARMA {
typedef string ResultSet;
}

typedef string tPaCreditLimitKey;
class cPaCreditLimit
{
public:
cPaCreditLimit();
public:
virtual ~cPaCreditLimit()
{};

public:
tPaCreditLimitKey read1(CARMA::ResultSet& rdr);
tPaCreditLimitKey read2(CARMA::ResultSet& rdr);
};

#if defined R1
tPaCreditLimitKey cPaCreditLimit::read1(CARMA::Resultset& rdr)
{
return string("A");
}
#endif

#if defined R2
tPaCreditLimitKey cPaCreditLimit::read2(ResultSet& rdr)
{
return string("A");
}
#endif
// end example

Within implementation of read1 there is a typo for ResultSet, within read2 namespace CARMA is missing.

As well
aCC test.cpp -DR1
as
aCC test.cpp -DR2
result in a core dump of the compiler instead of any error message giving a hint to the real error.
aCC test.cpp
has no problem.

Has anyone any idea whether there is a compile flag or compiler patch or whatever to solve this problem?
Help would be greatly appreciated.
Ludger.
1 REPLY 1
Zeev Schultz
Honored Contributor

Re: core dump using aCC 3.45

IMHO, because -D<...> goes for #define<...>
and not for #if defined (which I don't know if supported at all by hp prepoccessor - use #ifdef instead).
So computers don't think yet. At least not chess computers. - Seymour Cray