Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* what is wrong in this program on tru64 ?
@ 2003-11-26  7:46 jose luis fernandez diaz
  0 siblings, 0 replies; only message in thread
From: jose luis fernandez diaz @ 2003-11-26  7:46 UTC (permalink / raw)


Hi,

When I run the program below on Tru64:

#include <string>

int main()
{
  char *cad="hola";
  string s1 = 1 ? string(cad, 0, 2) : "";
}


I get the next error:

Unaligned access pid=28959 <a.out> va=0x3ff8000f40c pc=0x1200059c8
ra=0x120005944 inst=0xa403ffe8
Resources lost(coredump)


These are the OS and compiler versions:

sqocfms01:jdiaz:/tmp>uname -a
OSF1 sqocfms01.esm.cpqcorp.net V5.1 1885 alpha
sqocfms01:jdiaz:/tmp>cxx -V
Compaq C++ V6.3-008 for Compaq Tru64 UNIX V5.1A (Rev. 1885)
Compiler Driver V6.3-008 (cxx) cxx Driver


Thands in advance,
Jose Luis


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-26  7:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-26  7:46 what is wrong in this program on tru64 ? jose luis fernandez diaz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox