[SunHELP] C++ compiler bug ?
sunhelp at sunhelp.org
sunhelp at sunhelp.org
Thu Feb 28 13:04:22 CST 2002
Help,
I have seen this ambiguity error on SunPro 5.2 and Rogue Wave has reproduced
it
with this case on all Forte/SunPro versions they have including 5.3
tx
??
class A
{
public:
void func( char c );
void func( int i ) const;
};
int main(void)
{
A a;
int arg = 1;
a.func(arg);
return 0;
}
[emma] /nfs/homes/haney 372% CC -c mytest.cpp
"mytest.cpp", line 14: Error: Overloading ambiguity between "A::func(char)"
and "A::func(int) const".
1 Error(s) detected.
He was on SunPro 5.3 patch 4 when he run the test case.
More information about the SunHELP
mailing list