-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow Type_Control as a tuple argument
Signed-off-by: Mihai Budiu <mbudiu@vmware.com>
- Loading branch information
Mihai Budiu
committed
Dec 2, 2022
1 parent
d0056fc
commit 0d94633
Showing
5 changed files
with
16 additions
and
6 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
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,5 @@ | ||
control ct(); | ||
void f(tuple<ct> t) | ||
{ | ||
t[0].apply(); | ||
} |
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,6 +1,3 @@ | ||
issue3378.p4(1): [--Werror=type-error] error: package f: not supported as a tuple field | ||
package f(); | ||
^ | ||
issue3378.p4(2): [--Werror=type-error] error: Error while analyzing tuple<package f, package f> | ||
issue3378.p4(2): [--Werror=type-error] error: f: not supported as a tuple field | ||
package g(tuple<f,f> b); | ||
^^^^^^^^^^ | ||
^ |
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,4 @@ | ||
control ct(); | ||
void f(tuple<ct> t) { | ||
t[0].apply(); | ||
} |
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,3 @@ | ||
issue3750.p4(2): [--Werror=type-error] error: ct: not supported as a tuple field | ||
void f(tuple<ct> t) | ||
^^ |