[all-commits] [llvm/llvm-project] 99daf6: [C++20] [Modules] Don't handle no linkage entities...
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Tue Jul 26 06:08:21 PDT 2022
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2022-07-26 (Tue, 26 Jul 2022)
[C++20] [Modules] Don't handle no linkage entities when overloading
The original implementation uses `ND->getFormalLinkage() <=
Linkage::InternalLinkage`. It is not right since the spec only says
internal linkage and it doesn't mention 'no linkage'. This matters when
we consider constructors. According to [class.ctor.general]p1,
constructors have no name so constructors have no linkage too.
More information about the All-commits