p4lang / p4c

P4_16 reference compiler
https://p4.org/
Apache License 2.0
681 stars 444 forks source link

Potential infinite recursion in Tofino backend #5014

Closed asl closed 1 week ago

asl commented 1 week ago
p4c/backends/tofino/bf-p4c/parde/marshal.h:68:78: warning: all paths through this function will call itself [-Winfinite-recursion]
inline JSONGenerator &operator<<(JSONGenerator &out, const MarshaledFrom &c) { return out << c; }
fruffy commented 1 week ago

This should be fixed in https://github.com/p4lang/p4c/pull/5007.