Files
clang-p2996/clang/test/Modules/Inputs/PR26179/basic_string.h
Vassil Vassilev 4d75e8d676 [modules] Prefer more complete array types.
If we import a module that has a complete array type and one that has an
incomplete array type, the declaration found by name lookup might be the one with
the incomplete type, possibly resulting in rejects-valid.

Now, the name lookup prefers decls with a complete array types. Also,
diagnose cases when the redecl chain has array bound, different from the merge
candidate.

Reviewed by Richard Smith.

llvm-svn: 262189
2016-02-28 19:08:24 +00:00

13 lines
214 B
C++

#ifndef _GLIBCXX_STRING
#define _GLIBCXX_STRING 1
template<typename T>
struct basic_string {
static T _S_empty_rep_storage[];
};
template<typename T>
T basic_string<T>::_S_empty_rep_storage[sizeof(T)];
#endif