[serialization] request for small test on CW 9.4/9.5 or Compaq C++ Tru64

Hello, I'm investigating a problem seemingly related to 2-phase lookup and the usage of Boost.Serialization. This problem shows in CW 9.4 or 9.5 as well as Compaq C++ for Tru64 and I'm trying to reduce it to a simple test case. I'd be grateful if some volunteer with access to one of the aforementioned compilers could try to compile the attached file ***against the current CVS*** and report the results. No need to link Boost.Serialization, the .cpp is a standalone module. On 1-phase lookup compilers, the file builds fine, but I suspect it'll fail when 2-phase lookup comes into play. Remember to compile against the current CVS. Thank you very much in advance, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

JOAQUIN LOPEZ MU?Z wrote: [...]
I'd be grateful if some volunteer with access to one of the aforementioned compilers could try to compile the attached file ***against the current CVS*** and report the results.
[...] Here you are:
cxx -V Compaq C++ V7.1-006 for Compaq Tru64 UNIX V5.1B (Rev. 2650) Compiler Driver V7.1-006 (cxx) cxx Driver
cxx -c -std strict_ansi -model ansi -I/vol2/boost/src/boost-HEAD test_inclusion.cpp cxx: Error: /vol2/boost/src/boost-HEAD/boost/serialization/traits.hpp, line 56: incomplete type is not allowed detected during: instantiation of class "boost::serialization::traits<T, Level, Tracking, Version, ETII> [with T=boost::serialization::nvp<int>, Level=2, Tracking=0, Version=0U,
ETII=boost::serialization::extended_type_info_impl<boost: :serialization::nvp<int>>]" at line 43 of "/vol2/boost/src/boost-HEAD/boost/serialization/nvp.hpp" instantiation of class "boost::serialization::nvp<T> [with T=int]" at line 37 of "test_inclusion.cpp" typedef BOOST_DEDUCED_TYPENAME ETII::type type_info_implementation; -----------------------------------^ cxx: Info: 1 error detected in the compilation of "test_inclusion.cpp". HTH, Markus

Markus Schöpflin ha escrito:
JOAQUIN LOPEZ MU?Z wrote:
[...]
I'd be grateful if some volunteer with access to one of the aforementioned compilers could try to compile the attached file ***against the current CVS*** and report the results.
[...]
Here you are:
cxx -V Compaq C++ V7.1-006 for Compaq Tru64 UNIX V5.1B (Rev. 2650) Compiler Driver V7.1-006 (cxx) cxx Driver
cxx -c -std strict_ansi -model ansi -I/vol2/boost/src/boost-HEAD test_inclusion.cpp cxx: Error: /vol2/boost/src/boost-HEAD/boost/serialization/traits.hpp, line 56: incomplete type is not allowed detected during: instantiation of class "boost::serialization::traits<T, Level, Tracking, Version, ETII> [with T=boost::serialization::nvp<int>, Level=2, Tracking=0, Version=0U,
ETII=boost::serialization::extended_type_info_impl<boost: :serialization::nvp<int>>]" at line 43 of "/vol2/boost/src/boost-HEAD/boost/serialization/nvp.hpp" instantiation of class "boost::serialization::nvp<T> [with T=int]" at line 37 of "test_inclusion.cpp" typedef BOOST_DEDUCED_TYPENAME ETII::type type_info_implementation; -----------------------------------^ cxx: Info: 1 error detected in the compilation of "test_inclusion.cpp".
HTH, Markus
It helps a lot! If you don't mind doing another round, you can find attached modified versions of boost/serialization/traits.hpp boost/serialization/type_info_implementation.hpp Could you give the test another try, now replacing the mentioned files with the ones attached? TIA, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

Joaquín Mª López Muñoz wrote: [...]
Could you give the test another try, now replacing the mentioned files with the ones attached?
Tried it with both V6.5-042 and V7.1-006. Compiles without any error or warning in both cases. Markus

Markus Schöpflin wrote:
Joaquín Mª López Muñoz wrote:
[...]
Could you give the test another try, now replacing the mentioned files with the ones attached?
Tried it with both V6.5-042 and V7.1-006. Compiles without any error or warning in both cases.
Also compiles with gcc-3.3.4, gcc-3.4.3, gcc-4.0.1, and gcc-4.0.2 on Tru64. Markus

Markus Schöpflin ha escrito:
Markus Schöpflin wrote:
Joaquín Mª López Muñoz wrote:
[...]
Could you give the test another try, now replacing the mentioned files with the ones attached?
Tried it with both V6.5-042 and V7.1-006. Compiles without any error or warning in both cases.
Also compiles with gcc-3.3.4, gcc-3.4.3, gcc-4.0.1, and gcc-4.0.2 on Tru64.
Markus
Markus, you're my man. Thanks for your support! Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
participants (3)
-
JOAQUIN LOPEZ MU?Z
-
Joaquín Mª López Muñoz
-
Markus Schöpflin