summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Cleeland <chris.cleeland@gmail.com>1997-12-11 02:18:31 +0000
committerChris Cleeland <chris.cleeland@gmail.com>1997-12-11 02:18:31 +0000
commita0baa394448bbfac7de050fa8384851d3759cc8a (patch)
tree32b6d65569872943212b94763157bfd8add336bf
parent7aa9cb1988eed2c195f2d6855443819911c64990 (diff)
downloadATCD-a0baa394448bbfac7de050fa8384851d3759cc8a.tar.gz
* tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp (Cubit_i::cube_sequence):
Changed to explicitly use the vector_out::ptr() method to get a ptr. It seems that g++ wanted to interpret this expression (output == 0) differently from Sun's C++, and this made both interpret it in the desired way.
-rw-r--r--TAO/ChangeLog-98c8
-rw-r--r--TAO/docs/releasenotes/orbcore.html7
-rw-r--r--TAO/tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp2
3 files changed, 16 insertions, 1 deletions
diff --git a/TAO/ChangeLog-98c b/TAO/ChangeLog-98c
index 7a04ac8b67c..0f63c853320 100644
--- a/TAO/ChangeLog-98c
+++ b/TAO/ChangeLog-98c
@@ -1,3 +1,11 @@
+Wed Dec 10 19:57:07 1997 Chris Cleeland <cleeland@cs.wustl.edu>
+
+ * tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp (Cubit_i::cube_sequence):
+ Changed to explicitly use the vector_out::ptr() method to get a
+ ptr. It seems that g++ wanted to interpret this expression
+ (output == 0) differently from Sun's C++, and this made both
+ interpret it in the desired way.
+
Wed Dec 10 14:23:24 1997 Carlos O'Ryan <coryan@macarena.cs.wustl.edu>
* TAO_IDL/be/be_state_structure.cpp:
diff --git a/TAO/docs/releasenotes/orbcore.html b/TAO/docs/releasenotes/orbcore.html
index 3607adb7cfa..95fa09abc47 100644
--- a/TAO/docs/releasenotes/orbcore.html
+++ b/TAO/docs/releasenotes/orbcore.html
@@ -62,6 +62,13 @@
Recently Completed Work:
<UL>
+ <li>Fixed problem in the IDL Cubit example which caused the
+ server to dump core when dealing with <code>_out</code> sequence
+ types <em>ONLY</em> when compiled with G++. It seems that G++
+ decided to interpret the expression <code>output == 0</code>
+ (where <code>output</code> is of type <code>vector_out</code>)
+ differently from Sun's C++ compiler.</li>
+
<li>Fixed a slight problem in <a href="#hostfix">other recent
work</a> where a servant listening on <code>INADDR_ANY</code>
reported an IOR with address <tt>0.0.0.0</tt>. It now reports
diff --git a/TAO/tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp b/TAO/tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp
index 33acd308cf0..0e057ae5815 100644
--- a/TAO/tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp
+++ b/TAO/tests/Cubit/TAO/IDL_Cubit/cubit_i.cpp
@@ -162,7 +162,7 @@ Cubit_i::cube_sequence(const Cubit::vector &input,
Cubit::vector_out output,
CORBA::Environment &)
{
- if (output == 0)
+ if (output.ptr () == 0)
{
output = new Cubit::vector (input.length ());
}