Bus Error with clang and clang++ on Solaris 11 SPARC (32bit0 RELEASE_380/rc3

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;

}