Fixed #5697 (Check for throw in __attribute__((nothrow)) function)