Commit a263235
committed
gccrs: Port over missing GOTO handling from cp/constexpr.cc
Fixes #1553
gcc/rust/ChangeLog:
* backend/rust-constexpr.cc (eval_constant_expression): port over goto
(potential_constant_expression_1): likewise
gcc/testsuite/ChangeLog:
* rust/compile/issue-1553.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>1 parent 0029e0e commit a263235
2 files changed
Lines changed: 61 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1918 | 1918 | | |
1919 | 1919 | | |
1920 | 1920 | | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
1921 | 1924 | | |
1922 | 1925 | | |
1923 | 1926 | | |
| |||
1951 | 1954 | | |
1952 | 1955 | | |
1953 | 1956 | | |
1954 | | - | |
1955 | | - | |
1956 | | - | |
1957 | 1957 | | |
1958 | 1958 | | |
1959 | 1959 | | |
| |||
2390 | 2390 | | |
2391 | 2391 | | |
2392 | 2392 | | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
2393 | 2416 | | |
2394 | 2417 | | |
2395 | 2418 | | |
| |||
6655 | 6678 | | |
6656 | 6679 | | |
6657 | 6680 | | |
| 6681 | + | |
| 6682 | + | |
| 6683 | + | |
| 6684 | + | |
| 6685 | + | |
| 6686 | + | |
| 6687 | + | |
| 6688 | + | |
| 6689 | + | |
| 6690 | + | |
| 6691 | + | |
| 6692 | + | |
| 6693 | + | |
| 6694 | + | |
| 6695 | + | |
6658 | 6696 | | |
6659 | 6697 | | |
6660 | 6698 | | |
| |||
| 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 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments