All,

These 2 simple applications will cause a bus error on SPARC Solaris 11. Note 
the programs run fine with gcc and g++ 5.3.0.

Dave


/* c program causes bus error on solaris */

#include <stdio.h>

int main()
{ 
   long double x = 1.2;
   printf("x: %Lg", x);

}


// c++ program causes bus error

#include <iostream>
using namespace std;

int main()
{ 
   long double x = 1.2;
   cout << "X: " << x << endl;

}
_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to