[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::c_plus_plus

Title:C++
Notice:Read 1.* and use keywords (e.g. SHOW KEY/FULL KIT_CXX_VAX_VMS)
Moderator:DECCXX::AMARTIN
Created:Fri Nov 06 1987
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3604
Total number of notes:18242

3457.0. "Compilation Error since CXX540" by AUBER::LORENZO (Philippe LORENZO: EVRY FRANCE TSSC Ultrix) Thu Feb 20 1997 08:26

    Hi,

    The following code compiles fine whith CXX530, but fails using CXX540/550
    Which one is the correct behavior (definitively not a C++ Guru :-) ).


class A {
public:
  void* _i;
  A(const A&);
};

class B : public A {
};

class X {
public:
  X(const A);
};

void f(const B b)
{
  X x(b);  //here is line 19
}


$ cxx -c vlasie.cxx
cxx: Error: vlasie.cxx, line 17: In this declaration, the argument list "(b)" m
a
tches more than one "X::X".
  X x(b);  //here is line 19
-----^

    Did I miss any cxx switch ?

    Thanks for Help,

    Philippe.
T.RTitleUserPersonal
Name
DateLines
3457.1DECCXL::OUELLETTEThu Feb 20 1997 18:1622
The compiler looks rather confused.
Adding -w0 to your command shows a bit more of how it goes wrong.

cxx: Error: cpp3457.cxx, line 17: In this declaration, the argument list
"(b)" matches more than one "X::X".
  X x(b);  // trouble here
-----^
cxx: Info: cpp3457.cxx, line 17: In this declaration, tried to match "X::X"
with the type "function (const A) returning reference to X" declared at line
number 12 in file cpp3457.cxx.
  X x(b);  // trouble here
-----^
cxx: Info: cpp3457.cxx, line 17: In this declaration, tried to match "X::X"
with the type "function (reference to const X) returning reference to X"
declared at line number 10 in file cpp3457.cxx.
  X x(b);  // trouble here
-----^

The frontend for the DEC C++ V6.0 has no trouble with this case though.
I'll log the bug so that it can be tracked.
So that we can figure out if it needs to be fixed before V6.0, would
you please tell us how much grief this causes you?
3457.2DECCXL::OUELLETTEThu Feb 20 1997 18:241
For your reference, this is CXXC Bug number 4147.
3457.3SPECXN::DERAMODan D'EramoThu Feb 20 1997 19:303
        Is this the same problem as in 3455 here?
        
        Dan
3457.4DECCXL::OUELLETTEThu Feb 20 1997 19:561
No, this one is still broken in the current compiler.
3457.5Fix needed before next ReleaseAUBER::LORENZOPhilippe LORENZO: EVRY FRANCE TSSC UltrixFri Feb 21 1997 13:1919
	Hi,

	Thanks for your reply, I called back my customer, and he
	told me that a fix for this release would be welcome.

	They deliver a Class librairies on different Unix with the 
	same API (function signatures) and source (ILOG company).

	They are near a release and can't modify the code and 
	documentation.

	So, any fix is welcome.

	Can you tell me when Cxx 6.0 will be available?

	Thanks,

Philippe
3457.6more info neededDECCXX::MITCHELLFri Feb 21 1997 18:139
Actually V5.6 is the next release, not V6.0.

Does this affect their customers also?  That is,
assume we gave them a fix, would their customers
need the fix also.  It sounds like this might be
the case since they deliver class libraries.

Could you be more specific about their release
plans?
3457.7More infos now available.AUBER::LORENZOPhilippe LORENZO: EVRY FRANCE TSSC UltrixFri Feb 28 1997 06:5313
    Hello,

    I asked them for more specific informations and they  told me that they
    will not need a fix for their customers (though they deliver class
    libraries, they told me that they have a Workaround).

    Their next release is planned for April the 15th. So if V5.6 is available
    before this they don't need a fix. If not, they need it.

    Thanks again for your help,

Philippe.
3457.8statusDECCXX::MITCHELLMon Mar 03 1997 12:5111
Thanks for the additional information.  To summarize my
understanding of this:

    -	The ISV needs a workaround or a fix for this problem
	before their next release, which is scheduled for
	15-Apr.

    -	Customers of this ISV do not need to have a compiler
	that fixes the problem.

We'll take a closer look at the problem.
3457.9fixedDECCXL::ZEEBJeff ZeebTue May 27 1997 14:384
This problem has been fixed, and is expected to appear in the V5.6
release.

Jeff
3457.10CXXC::WOLFEWed May 28 1997 14:011
fixed by v6.0