Fix the undefined-but-used odr-use marker (DR48)
authorAlp Toker <alp@nuanti.com>
Sun, 1 Jun 2014 18:49:32 +0000 (18:49 +0000)
committerAlp Toker <alp@nuanti.com>
Sun, 1 Jun 2014 18:49:32 +0000 (18:49 +0000)
commit71c53d472f4abb6803763848a488193057c56985
treedd2568e46c8f9b60759c4ed7ef8d68e01d24e1d7
parentc2d5e611778d82b67a7fd0150f6aa4bed6b81a23
Fix the undefined-but-used odr-use marker (DR48)

We should treat tentative definitions as undefined for the purpose of
ODR-use linkage checking.

This broke somewhere around r149731 when tests were disabled.

Note that test coverage for these diagnostics is generally lacking due to a
separate issue (PR19910: Don't suppress unused/undefined warnings when there
are errors).

llvm-svn: 209996
clang/include/clang/Sema/SemaInternal.h
clang/test/CXX/drs/dr0xx.cpp
clang/test/SemaCXX/undefined-internal.cpp