-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac OSX: parseNumber tests failing for out-of-bound numbers on clang #45
Comments
The reliance on the failure from istringstream is used to check for out-of-bounds arguments to things like OpConstant %type , where %type is a known type. This looks like a bug in the Apple C++ library. Well, we've already worked around a GNU libc++ bug. We seem to have an Apple one. Thanks for reporting this. |
I investigated two test failures which occur on Mac OSX using Apple's Clang. There are two failing essential cases:
|
Works around a difference between Xcode's std::istringstream and that of other platforms. Addresses part of KhronosGroup#45
Works around a difference between Xcode's std::istringstream and that of other platforms. Addresses part of KhronosGroup#45
Also checks some hex literal cases. This addresses part of KhronosGroup#45 by removing the parseNumber case for "-0" on unsigned integers. We don't care about that platform difference at the level of std::istringstream, since we reject it at a higher parsing level.
Also checks some hex literal cases. This addresses part of KhronosGroup#45 by removing the parseNumber case for "-0" on unsigned integers. We don't care about that platform difference at the level of std::istringstream, since we reject it at a higher parsing level.
Also checks some hex literal cases. This addresses part of #45 by removing the parseNumber case for "-0" on unsigned integers. We don't care about that platform difference at the level of std::istringstream, since we reject it at a higher parsing level.
Fixed in master with 6bad02c |
- SPV_EXT_shader_stencil_export - SPV_AMD_shader_image_load_store_lod
The following tests are failing for parseNumber using clang++
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
.:This is because clang does not fail for large numbers(i.e. 1e400) when converting text to float using istringstream.
Output:
The text was updated successfully, but these errors were encountered: