Using snapshot 20041212 the attached program no longer compiles
(with gcc33/gcc34 and last weeks snapshot it does)

This program is part of ACE 5.4.2

Michael Cieslinski


g++40 -c -o Any.o Any.ii -v
Reading specs from /usr/local/gcc40d/lib/gcc/x86_64-unknown-linux-
gnu/4.0.0/specs
Configured with: ../gcc40/configure --prefix=/usr/local/gcc40d --program-
suffix=40d --with-arch=opteron --enable-languages=c,c++ --enable-checking
Thread model: posix
gcc version 4.0.0 20041212 (experimental)
 /usr/local/gcc40d/libexec/gcc/x86_64-unknown-linux-gnu/4.0.0/cc1plus -
fpreprocessed Any.ii -quiet -dumpbase Any.ii -march=opteron -auxbase-strip 
Any.o -version -o /tmp/ccvyt86g.s
GNU C++ version 4.0.0 20041212 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.0.0 20041212 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
/home/cie019/ace542-gcc40/ACE_wrappers/TAO/tao/Any_Impl_T.cpp: In static member 
function 'static CORBA::Boolean TAO::Any_Impl_T<T>::extract(const CORBA::Any&, 
void (*)(void*), CORBA::TypeCode*, T*&)':
/home/cie019/ace542-gcc40/ACE_wrappers/TAO/tao/Any_Impl_T.cpp:122: error: 
request for member 'replace' in 'const_cast<CORBA::Any&>(any)', which is of non-
class type 'CORBA::Any&'
/home/cie019/ace542-gcc40/ACE_wrappers/TAO/tao/Any_Special_Impl_T.cpp: In 
static member function 'static CORBA::Boolean TAO::Any_Special_Impl_T<T, 
from_T, to_T>::extract(const CORBA::Any&, void (*)(void*), CORBA::TypeCode*, 
const T*&, CORBA::ULong)':
/home/cie019/ace542-gcc40/ACE_wrappers/TAO/tao/Any_Special_Impl_T.cpp:173: 
error: request for member 'replace' in 'const_cast<CORBA::Any&>(any)', which is 
of non-class type 'CORBA::Any&'
/home/cie019/ace542-gcc40/ACE_wrappers/TAO/tao/Any_Dual_Impl_T.cpp: In static 
member function 'static CORBA::Boolean TAO::Any_Dual_Impl_T<T>::extract(const 
CORBA::Any&, void (*)(void*), CORBA::TypeCode*, const T*&)':
/home/cie019/ace542-gcc40/ACE_wrappers/TAO/tao/Any_Dual_Impl_T.cpp:166: error: 
request for member 'replace' in 'const_cast<CORBA::Any&>(any)', which is of non-
class type 'CORBA::Any&'

-- 
           Summary: [4.0 Regression] C++ program  no longer compiles
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: micis at gmx dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18949

Reply via email to