Just compiling an tiny C program with a single printf hello world shows these errors when asking for debug (-g) or optimized build.
$ cc -m64 hello.c -o hello
$ cc -g -m64 hello.c -o hello
cc: Fatal error in /opt/solarisstudio12.3/prod/bin/acomp
cc: Status 139
$ cc -xO2 -m64 hello.c -o hello
Assertion failed: (cp >= min_heap_addr) && (cp <= cached_sbrk), file ../src/malloc.c, line 727
cc: Fatal error in /opt/solarisstudio12.3/prod/bin/cg
cc: Status 134