Revert "Fix #13093 C++ Atomics: operator= is implicitly deleted because the default definition would be ill-formed " (#21307)
Revert "Fix #13093 C++ Atomics: operator= is implicitly deleted because the default definition would be ill-formed (#21169)"
This reverts commit a7bae919ad.
This commit is contained in:
parent
a7bae919ad
commit
1431f90d8c
5 changed files with 2 additions and 54 deletions
|
|
@ -717,11 +717,7 @@ proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode =
|
|||
tyUserTypeClassInst})
|
||||
if actualType.kind in {tyObject, tyDistinct} and
|
||||
actualType.requiresInit:
|
||||
# imported type use requiresInit pragma prevent implicit initialization
|
||||
if (tfRequiresInit in actualType.flags and sfImportc in actualType.sym.flags):
|
||||
discard
|
||||
else:
|
||||
defaultConstructionError(c, v.typ, v.info)
|
||||
defaultConstructionError(c, v.typ, v.info)
|
||||
else:
|
||||
checkNilable(c, v)
|
||||
# allow let to not be initialised if imported from C:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue