Disable C++11 noexcept support in GCC 4.6.0 and 4.6.1
See report: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50309 Change-Id: I5ab3ab1dea42b03ea22dbfbe5f7039c537dabd33 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
31788fc981
commit
7315296e9c
@ -632,6 +632,11 @@
|
||||
# define Q_COMPILER_NULLPTR
|
||||
# define Q_COMPILER_UNRESTRICTED_UNIONS
|
||||
# define Q_COMPILER_RANGE_FOR
|
||||
# if __GNUC__ == 4 && __GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ < 2
|
||||
/* GCC 4.6.0 and 4.6.1 have a problem dealing with noexcept expressions,
|
||||
* so turn the feature off for those versions */
|
||||
# undef Q_COMPILER_NOEXCEPT
|
||||
# endif
|
||||
# endif
|
||||
# if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407
|
||||
/* C++11 features supported in GCC 4.7: */
|
||||
|
Loading…
Reference in New Issue
Block a user