summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/global/qglobal.h6
-rw-r--r--tests/auto/collections/tst_collections.cpp2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index 15912a4031..d4bfd2b018 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -718,8 +718,10 @@ namespace QT_NAMESPACE {}
in which case _BOOL is not defined
this is the default in 4.2 compatibility mode triggered by -compat=4 */
# if __SUNPRO_CC >= 0x500
-# define QT_NO_TEMPLATE_TEMPLATE_PARAMETERS
- /* see http://developers.sun.com/sunstudio/support/Ccompare.html */
+# if __SUNPRO_CC < 0x590
+# define QT_NO_TEMPLATE_TEMPLATE_PARAMETERS
+ /* see http://www.oracle.com/technetwork/systems/cccompare-137792.html */
+# endif
# if __SUNPRO_CC >= 0x590
# define Q_ALIGNOF(type) __alignof__(type)
# define Q_TYPEOF(expr) __typeof__(expr)
diff --git a/tests/auto/collections/tst_collections.cpp b/tests/auto/collections/tst_collections.cpp
index fff0409cca..7045df7cab 100644
--- a/tests/auto/collections/tst_collections.cpp
+++ b/tests/auto/collections/tst_collections.cpp
@@ -3698,6 +3698,8 @@ void tst_Collections::QTBUG13079_collectionInsideCollection()
QTBUG13079_collectionInsidePtrImpl<QSharedPointer>();
QTBUG13079_collectionInsidePtrImpl<QExplicitlySharedDataPointer>();
QTBUG13079_collectionInsidePtrImpl<QSharedDataPointer>();
+#else
+ QSKIP("Template-Template Parameters are not supported", SkipAll);
#endif
}