mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 14:31:04 +01:00
Remove incorrect CHECK that would fail for out-of-line template declarations. (#7772)
Add a test, which fails for now, but will eventually demonstrate why this CHECK was incorrect.
This commit is contained in:
@@ -334,9 +334,6 @@ auto AttachDependentInstToCurrentGeneric(Context& context,
|
||||
// declaration in this case instead of attempting to attach the new
|
||||
// declaration to a generic region that we're no longer within.
|
||||
if (context.generic_region_stack().Empty()) {
|
||||
// This should only happen for `*Decl` instructions, never for template
|
||||
// actions.
|
||||
CARBON_CHECK(!dep_kind.HasAnyOf(DependentInstKind::Template));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user