Skip to content

Compiler bug with don'tcare type argument and table #3808

@apinski-cavium

Description

@apinski-cavium

Take this obvious invalid code:

action NoAction(){}

extern void f<T>(in T a);
control eq0()
{
  table t {
    const size = 100;
    actions = {NoAction;}
  }
  apply {
    f<_>(t);
  }
}

The compiler produces:

In file: /home/apinski/src/p4/p4c/frontends/p4/typeChecking/typeChecker.cpp:189
Compiler Bug: Could not find type of t

Metadata

Metadata

Assignees

Labels

coreTopics concerning the core segments of the compiler (frontend, midend, parser)fixedThis topic is considered to be fixed.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions