Operating System - HP-UX
1825759 Members
2193 Online
109687 Solutions
New Discussion

Re: Compiler bug with aCC 3.85?

 
David Ritter
Occasional Advisor

Compiler bug with aCC 3.85?

Hello,

I believe I have encountered a (couple) of bugs with the aCC 3.85 compiler. Here is my test case:

/********************/
struct UDT
{
// Uncommenting this will reveal a bug? that causes the compiler to crash
//void operator ()(void);

void operator ()(float);
};

template
class CompatibleException
{
public:
CompatibleException() {};

operator T (void);
};


int
main()
{
CompatibleException ce;

ce.operator UDT ();

return 0;
}

/********************/

If I then compile it with the command, I get the following error

[ritter@blokus] > aCC -AA -O -mt hp_template_conv.cpp
Error 224: "hp_template_conv.cpp", line 26 # Arguments do not match with any function '('.
ce.operator UDT ();
^^^^^^^^^^^^^^^^^^

Can anyone else reproduce this? It looks like there is a bug with the compiler with the function call operator generation.

Thank you for any help you can provide.

Dave Ritter
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Compiler bug with aCC 3.85?

This works fine on aCC6.

I get error 224 for A.03.85 if commented and this OOPS message if not:
OOPS!! . DotArrowOp emitCode() unimplemented (in Expression::emitCode)

You'll need to compile with +hpxstd98, which works either way that line is there.