p4lang / p4c

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

Fix Type_Indexed::at #4927

Closed ChrisDodd closed 2 months ago

ChrisDodd commented 2 months ago

This bug is a mis-translation from java to C++ so has been present in the code for many years and noone ever noticed.

Arguably, this should be done/checked in the irgenerator -- all methods of an interface class should be virtual