I had a program compile under sunos 32bit and work fine , but when i compile it under 64bit it compile wihout any warnings but at runtime it makes core dump
at this line:
There are many ways in which an erroneous C++ (or C) program could compile and run in a 32-bit environment, but coredump in 64, and the single line you're showing is insufficient to diagnose the problem.
Solaris has excellent debugging tools, use them (start with dbx)