[cfe-users] Bus Error with clang and clang++ on Solaris 11 SPARC (32bit0 RELEASE_380/rc3
Dave Ryan via cfe-users
cfe-users at lists.llvm.org
Thu Feb 25 18:33:36 PST 2016
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;
}
More information about the cfe-users
mailing list