Improve diagnostic when failing to synthesize implicit member due to dllexport (PR22591)
authorHans Wennborg <hans@hanshq.net>
Sat, 21 Feb 2015 01:07:24 +0000 (01:07 +0000)
committerHans Wennborg <hans@hanshq.net>
Sat, 21 Feb 2015 01:07:24 +0000 (01:07 +0000)
commit5870373d19547b3e05bc1ec1df3b534d999e1d82
treedcea477a08b884e3529ff2aedc2e60dd8bb4db81
parent2e5c25ac772412310509c0b44ce7ebf8b4b2a23f
Improve diagnostic when failing to synthesize implicit member due to dllexport (PR22591)

This is only a problem in C++03 mode targeting MS ABI (MinGW doesn't
export inline methods, and C++11 marks these methods implicitly
deleted).

Since targeting the MS ABI in pre-C++11 mode is a rare configuration,
this will probably not get fixed, but we can at least have a better
error message.

llvm-svn: 230115
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/SemaCXX/dllexport-pr22591.cpp