[depr.local]

# Annex D (normative) Compatibility features [[depr]](./#depr)

## D.2 Non-local use of TU-local entities [depr.local]

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/future.tex#L21)

A declaration of a non-TU-local entity that is an exposure ([[basic.link]](basic.link "6.7 Program and linkage"))
is deprecated[.](#1.sentence-1)

[*Note [1](#note-1)*:

Such a declaration in an importable module unit is ill-formed[.](#1.sentence-2)

â *end note*]

[*Example [1](#example-1)*: namespace {struct A {void f() {}};} A h(); // deprecated: not internal linkageinline void g() {A().f();} // deprecated: inline and not internal linkage â *end example*]
