Skip to content

Commit c37bdf5

Browse files
committed
Add test case for DIM BYREF bug #822 (fixed by a821ef5/3cc22e22)
git bisect showed that a821ef5 already fixed this indirectly, by showing the following error message: Local symbols can't be referenced in 'Dim Byref As UDT1 UDT2.ru1 = u1' now since 3cc22e2 another error is shown: Expected constant in 'Dim Byref As UDT1 UDT2.ru1 = u1'
1 parent 3cc22e2 commit c37bdf5

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Version 1.06.0
6161
- Fixed inline asm procedure name mangling bug (missing underscore prefix) with -gen gcc -asm intel on dos/win32
6262
- #878: Fix fbc-64bit hangs on 'Case True' + 'Case False' inside 'Select Case As const'
6363
- Fix SELECT CASE AS CONST to allow both signed & unsigned case range values
64-
- Compiler crash when initializing shared reference (DIM SHARED BYREF) from another shared reference
64+
- #822: Compiler crash when initializing shared reference (DIM SHARED BYREF) from another shared reference
6565

6666

6767
Version 1.05.0
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
' TEST_MODE : COMPILE_ONLY_FAIL
2+
3+
Type UDT1
4+
Dim As Integer I1
5+
End Type
6+
7+
Type UDT2
8+
Dim As Integer I2
9+
Static Byref As UDT1 ru1
10+
End Type
11+
12+
Dim As UDT1 u1
13+
14+
Dim Byref As UDT1 UDT2.ru1 = u1

0 commit comments

Comments
 (0)