4 Replies Latest reply: Dec 25, 2012 10:46 AM by 973976 RSS

    Assertion error on solarisstudio12.3 C++ compiler

    973976
      Hi

      We are moving our C++ compiler version from CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 to solarisstudio12.3 version of compiler and when we compile following C++ file using the command

      /opt/solarisstudio12.3/bin/CC -O4 -features=no%conststrings -template=no%extdef -xcode=pic32 -mt -m64 -xlibmieee -znocompstrtab -DGENERATED_BUILD_CPP -DBUILD_MODE_RO -DDM_USE_STL -DCORBA_TAO -DBITS64 -DSOLARIS -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS_BITS64 -DCORBA_TAO -D_MBCS -DDLLIMPORT -D_LIB -D__MT__ -DI2_TAO_SOL -DACE_HAS_EXCEPTIONS -DSMARTHEAP -DSOLTHREADS -D__solaris -DSol210 -I. -I../utils -I../Basic -I../idls -I../Init -I../Comp -I../cont -I../../../TAO/TAO-1.5/ACE_wrappers -I../../../TAO/TAO-1.5/ACE_wrappers/TAO -I../../../TAO/TAO-1.5/ACE_wrappers/TAO/orbsvcs -I/opt/7.8-stack/SmartHeap_8.1smp/include -o expreval.o -c expreval.cpp

      Its giving assertion error

      "./errors_m.h", line 1850: Warning: Identifier expected instead of "}".
      "./wstr.h", line 278: Warning: Len hides StringExt_m::Len.
      "./any_m.h", line 25: Warning: collectionType hides Any_m::collectionType.
      "./any_m.h", line 25: Warning: multiDimData hides Any_m::multiDimData.
      "./../Comp/thread_m.h", line 89: Warning: env hides CThread_m::env.
      "./../Comp/thread_m.h", line 97: Warning: env hides CThread_m::env.
      "./allhdrs.h", line 569: Warning: Last line in file "./bit_vector.h" is not term
      inated with a newline.
      "../Comp/compinfobase.h", line 176: Warning: Name hides CompInfoBase::Name.
      "../Comp/compinfobase.h", line 181: Warning: Name hides CompInfoBase::Name.
      *>> Assertion:   (../lnk/utfutils.cc, line 79)*
      while processing mzrtpars.h at line 37._ ==>this is a LEX/YACC parser file generated by bison which has not changed since years

      When compiling the same file with our existing compiler version CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 it compiles fine with following warnings

      "/opt6/SUNWspro/bin/CC -O4 -features=no%conststrings -template=no%extdef -xcode=pic32 -mt -m64 -xlibmieee -DGENERATED_BUILD_CPP -DBUILD_MODE_RO -DDM_USE_STL -DCORBA_TAO -DBITS64 -DSOLARIS -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS_BITS64 -DCORBA_TAO -D_MBCS -DDLLIMPORT -D_LIB -D__MT__ -DI2_TAO_SOL -DACE_HAS_EXCEPTIONS -DSMARTHEAP -DSOLTHREADS -D__solaris -I. -I../utils -I../Basic -I../idls -I../Init -I../Comp -I../cont -I../../../TAO/TAO-1.5/ACE_wrappers -I../../../TAO/TAO-1.5/ACE_wrappers/TAO -I../../../TAO/TAO-1.5/ACE_wrappers/TAO/orbsvcs -I/opt/7.8-stack/SmartHeap_8.1smp/include -o expreval.o -c expreval.cpp"

      "./errors_m.h", line 1850: Warning: Identifier expected instead of "}".
      "./wstr.h", line 285: Warning: Len hides StringExt_m::Len.
      "./any_m.h", line 32: Warning: collectionType hides Any_m::collectionType.
      "./any_m.h", line 32: Warning: multiDimData hides Any_m::multiDimData.
      "./../Comp/thread_m.h", line 90: Warning: env hides CThread_m::env.
      "./../Comp/thread_m.h", line 98: Warning: env hides CThread_m::env.
      "./allhdrs.h", line 569: Warning: Last line in file "./bit_vector.h" is not term
      inated with a newline.
      "../Comp/compinfobase.h", line 177: Warning: Name hides CompInfoBase::Name.
      "../Comp/compinfobase.h", line 182: Warning: Name hides CompInfoBase::Name.
      "./seqseqarr.h", line 77: Warning: chunks hides DynArr_m<SynTreeNode_m>::chunks.
      "expreval.cpp", line 1107: Where: While instantiating "SeqSeqArr_m<SynTreeNo
      de_m>::getNumUsedChunks(unsigned&) const".
      "expreval.cpp", line 1107: Where: Instantiated from non-template code.
      "./seqseqarr.h", line 77: Warning: chunks hides DynArr_m<SymTabMbr_m>::chunks.
      "expreval.cpp", line 1114: Where: While instantiating "SeqSeqArr_m<SymTabMbr
      _m>::getNumUsedChunks(unsigned&) const".
      "expreval.cpp", line 1114: Where: Instantiated from non-template code.
      11 Warning(s) detected.



      I am find of struck,any pointers please

      Thanks
      Nayeem Khan

      Edited by: 970973 on Nov 13, 2012 6:42 AM