-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unreachable code panic when instantiating a component with a generic type #348
Comments
I was just about to report this problem, as I ran into it as well. |
I looked at the code and using subprograms or types in generic associations is simply not implemented. In fact generic associations are treated exactly like port associations at the moment. On my side I just patched it by adding this line:
right after:
Which is definitely wrong but at least there's no panic. |
I just want to say that I'm on it, but I have decided against a quick fix because there currently is a lot of duplicate logic when analyzing interface lists (for example, the capabilities missing for entities is implemented for generic packages and generic subprograms) so I want to simplify the code a bit before rolling out the fix. |
Just want to +1 for a slightly different but related issue. I'm getting the same panic with a package as generic: package GenPkg is
generic (...);
end package GenPkg;
entity Foo is
end entity;
architecture Behavioral of Foo is
package GenPkgInst is new work.GenPkg generic map (...);
begin
Inst_Bar : entity work.Bar
generic map (myGenPkg => GenPkgInst);
port map (...); and the suggested workaround here did not work. |
The following file:
Causes a panic:
I'm using v0.83.0.
The text was updated successfully, but these errors were encountered: