-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix SNEX compiler not detecting illegal outer class member access
- Loading branch information
1 parent
0082207
commit 18fa3ac
Showing
4 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
c74524c48743ccc455d802694a731daa94a1bf8e | ||
00822079687481f8979f0fe7299029f3e988160b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
#define PREVIOUS_HISE_COMMIT "c74524c48743ccc455d802694a731daa94a1bf8e" | ||
#define PREVIOUS_HISE_COMMIT "00822079687481f8979f0fe7299029f3e988160b" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
tools/snex_playground/test_files/struct/outer_member_access.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
BEGIN_TEST_DATA | ||
f: main | ||
ret: int | ||
args: int | ||
input: 12 | ||
output: 12 | ||
error: "Line 21(11): Can't access outer member from inner class" | ||
filename: "struct/outer_member_access" | ||
END_TEST_DATA | ||
*/ | ||
|
||
struct Outer | ||
{ | ||
struct Inner | ||
{ | ||
int x = 9; | ||
|
||
int getV() | ||
{ | ||
return v; | ||
} | ||
}; | ||
|
||
Inner data; | ||
|
||
int v = 12; | ||
}; | ||
|
||
int main(int input) | ||
{ | ||
Outer obj; | ||
return obj.data.getV(); | ||
} | ||
|