Kyle Cripps

Results 27 issues of Kyle Cripps

Compiling the following P4 code: ``` extern void __e(in bit arg); extern void __e2(in bit arg); control C() { action bar(bool a, bool b) { bit x; bit y; if...

bug
core
regression

Compiling the following P4 code: ``` enum E { e0 } extern void bar(E x); extern void baz(); void foo(E y) { bar(y); if (y == E.e0) baz(); } control...

bug
core
regression

I am curious why the source code at testdata/p4_16_errors_outputs/methodArgDontcare.p4 is not expected to compile. In my opinion, [this error](https://github.com/p4lang/p4c/commit/facc5ed5ac5d223b55c6d1dede5373493c41eab9#diff-addc7332865e8036bf6b0c6299bcc2a5ef895596dcfb1e7e5fb44c0fefcd488eR3601) should not have been added by #3901 (#3808 was actually fixed...

bug
question
core
regression

Some warnings and errors have the same name, for example `ERR_INVALID` and `WARN_INVALID`: ``` // map from errorCode to ErrorSig std::map ErrorCatalog::errorCatalog = { // Errors {ErrorType::LEGACY_ERROR, "legacy"}, {ErrorType::ERR_UNKNOWN, "unknown"},...

core

This is one possible fix for #4656. For example, one possible alternative might be to revert https://github.com/p4lang/p4c/pull/3633 and add a check for action enum `SwitchStatement` labels, similar to the one...

core
p4-spec

Compiling ``` #include extern void foo(); extern void bar(); extern bit baz(); action a(){} action b(){} control c() { table t { actions = { a ; b; } }...

bug
core

Reverts https://github.com/p4lang/p4c/commit/4a74084c675a3e8bdf7a318e468cbd5bb27c6914, as discussed as an alternate fix for #4656 in https://github.com/p4lang/p4c/pull/4657.

core
p4-spec

With 01fedcc0ee74b39e6e23aa7217b4080fcd22d4a6, compiling the following P4 program: ``` header h_t { bit f; } control C() { action bar() { } table t { actions = { bar; } default_action...

bug
core
Regression

For example: ``` header h_t { bit f; } control C() { @name(".act") action bar() {} @name(".act") action foo() {} table t { actions = { bar; } default_action =...

question
control-plane
core