Commit b23c015
Fix unbound arrays flattened type compare (#3544)
Comparing two unbound arrays where one was initilizing the other
resulted in infinitely incrementing both and never reaching a
conclusion.
This adds detection to FlattenedTypeIterator for the situation whereupon
the comparison is terminated and the result returned.
A simple test of the assignment is added expecting the correct error.1 parent 55f39f5 commit b23c015
2 files changed
Lines changed: 23 additions & 0 deletions
File tree
- tools/clang
- lib/Sema
- test/HLSLFileCheck/hlsl/diagnostics/errors
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5262 | 5262 | | |
5263 | 5263 | | |
5264 | 5264 | | |
| 5265 | + | |
| 5266 | + | |
5265 | 5267 | | |
5266 | 5268 | | |
5267 | 5269 | | |
| |||
10997 | 10999 | | |
10998 | 11000 | | |
10999 | 11001 | | |
| 11002 | + | |
| 11003 | + | |
| 11004 | + | |
| 11005 | + | |
| 11006 | + | |
11000 | 11007 | | |
11001 | 11008 | | |
11002 | 11009 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments