1830935 Members
2504 Online
110017 Solutions
New Discussion

Re: Compiler failure

 
SOLVED
Go to solution
Jay Edgar
Occasional Contributor

Compiler failure

This little code snippet causes the HP aC++ compiler (A.05.55) on HP-UX 11i (11.22) for ia64 to generate a Signal 11 and exit with a stack trace. The problem does not occur when using the HP aC++ compiler (A.03.45) on HP-UX 11i (11.11) for PA-RISC. I don't know how to submit this as a defect and I am hoping someone here has the ear of someone on the development team.

Here is the simple code snippet. I know it looks kind of odd, but there are reasons for it, and it compiles on every other system I tried (Windows, Linux, Solaris, AIX, QNX Neutrino).

#include

int main(void)
{
static wchar_t w[2][10] = { L"a", {127, 0} };
}
3 REPLIES 3
Antoniov.
Honored Contributor

Re: Compiler failure

Hi Jay,
I can't understand your code; it seems to me an unadmitted double declaration; peraphs you could write:

#include
int main(void)
{
static wchar_t w[2][10] = { "a", "\007F" };
}

What do you will make exactly?

Bye
Antoniov
Antonio Maria Vigliotti
ranganath ramachandra
Esteemed Contributor

Re: Compiler failure

the compiler folks have filed JAGaf08920 .
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

Soumitra Chatterjee
New Member
Solution

Re: Compiler failure

Hi,

This is a compiler bug and it is being addressed.
A defect has been filed against the compiler as JAGaf08920.

Thanks,
Soumitra