llvm-project/clang/test/CXX
Richard Smith 405e2dbf37 Implement C++ [basic.link]p8.
If a function or variable has a type with no linkage (and is not extern "C"),
any use of it requires a definition within the same translation unit; the idea
is that it is not possible to define the entity elsewhere, so any such use is
necessarily an error.

There is an exception, though: some types formally have no linkage but
nonetheless can be referenced from other translation units (for example, this
happens to anonymous structures defined within inline functions). For entities
with those types, we suppress the diagnostic except under -pedantic.

llvm-svn: 313729
2017-09-20 07:22:00 +00:00
..
basic Implement C++ [basic.link]p8. 2017-09-20 07:22:00 +00:00
class revert changes from r311851. 2017-08-27 19:00:08 +00:00
class.access Switch from using a DiagnosticTrap and a note for "while defining a special 2017-05-25 22:47:05 +00:00
class.derived Add context note to diagnostics that occur while declaring an implicit special member function. 2017-02-23 21:43:43 +00:00
concepts-ts [Concepts] Class template associated constraints 2017-02-10 02:46:19 +00:00
conv [c++1z] P0003R5: Removing dynamic exception specifications. 2016-12-08 02:49:07 +00:00
cpp/cpp.predefined P0035R4: add predefined __STDCPP_DEFAULT_NEW_ALIGNMENT__ macro. By default, we 2016-09-30 22:41:36 +00:00
dcl.dcl Replace remaining user-visible mentions of C++1z with C++17. 2017-08-13 22:26:53 +00:00
dcl.decl Do not inherit default arguments for friend function in class template. 2017-06-08 06:31:19 +00:00
drs Replace remaining user-visible mentions of C++1z with C++17. 2017-08-13 22:26:53 +00:00
except Address comments that escaped D33333 2017-07-05 16:43:45 +00:00
expr [c++2a] Implement P0409R2 - Allow lambda capture [=,this] (by hamzasood) 2017-08-19 03:43:07 +00:00
lex Convert test/CXX/lex/lex.literal/lex.string/p4.cpp back to DOS line 2016-01-04 10:17:48 +00:00
modules-ts Add target triple to improve the happiness of MSVC buildbots. 2017-09-07 22:07:52 +00:00
over P0702R1: in class template argument deduction from a list of one element, if 2017-09-07 07:22:36 +00:00
special [Sema] Improve the error diagnostic for dot destructor calls on pointer objects 2017-01-20 15:38:58 +00:00
stmt.stmt Replace remaining user-visible mentions of C++1z with C++17. 2017-08-13 22:26:53 +00:00
temp Do not look through pack expansions when looking for unexpanded parameter packs. 2017-08-15 22:58:45 +00:00