KhronosGroup / KhronosGroup/glslang
Running glanslangtest Glsl/CompileToAstTest.FromFile/stringToDouble_vert fails in debug mode
- Dominant language
- C++
- Stars
- 3.6k
- Forks
- 989
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 31
Description
When running the following command line
build\gtests\Debug\glslangtests.exe --gtest_filter=Glsl/CompileToAstTest.FromFile/stringToDouble_vert
I see following error
```
With diff:
@@ -35,5 +35,5 @@
0:10 'w6' ( temp double)
0:10 Constant:
-0:10 1.2345678901235e+15
+0:10 1.2345678901234e+15
0:11 Sequence
0:11 move second child to first child ( temp double)
@@ -559,5 +559,5 @@
0:10 'w6' ( temp double)
0:10 Constant:
-0:10 1.2345678901235e+15
+0:10 1.2345678901234e+15
0:11 Sequence
0:11 move second child to first child ( temp double)
```
This issue is not seen with release build of glslangtest
Contributor guide
Research direction
Start by running build\gtests\Debug\glslangtests.exe with the Glsl/CompileToAstTest.FromFile/stringToDouble_vert filter and compare it with the release build. Inspect the test's expected output and the differing double formatting; done means the debug test produces the expected 1.2345678901235e+15 output without affecting the release result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100