Sun Studio 12 Update 1: C++ User's Guide

Interactions

You cannot use the standard libraries in compatibility mode (-compat[=4]).

Use of –compat[=4] with any of the following options is not supported.

Use of –compat=5 with any of the following options is not supported.