[PATCH] D26143: [modules] Mark deleted functions as implicitly inline to allow merging
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 31 04:36:56 PDT 2016
EricWF created this revision.
EricWF added reviewers: rsmith, silvas, manmanren.
EricWF added a subscriber: cfe-commits.
When merging definitions with ModulesLocalVisibility enabled it's important to make deleted definitions implicitly inline, otherwise they'll be diagnosed as a redefinition.
@@ -13870,6 +13870,11 @@
+ // C++11 [dcl.fct.def.delete]p4:
+ // A deleted function is implicitly inline.
+ // NOTE: Modules cannot correctly merge deleted functions unless they are
+ // inline.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 489 bytes
Desc: not available
More information about the cfe-commits