mstorsjo created this revision. mstorsjo added reviewers: Endill, hans, aaron.ballman. Herald added a project: All. mstorsjo requested review of this revision. Herald added a project: clang.
This uses the same logic as in c2b256a990590dc8b69930259650cfeb085add03 <https://reviews.llvm.org/rGc2b256a990590dc8b69930259650cfeb085add03>; we can't check defined(_MSC_VER) invoked as %clang_cc1, therefore check for !defined(__MINGW32__) instead. This fixes the same issue in a new testcase that was added after this issue was fixed last time in c2b256a990590dc8b69930259650cfeb085add03 <https://reviews.llvm.org/rGc2b256a990590dc8b69930259650cfeb085add03>. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D151661 Files: clang/test/CXX/drs/dr9xx.cpp Index: clang/test/CXX/drs/dr9xx.cpp =================================================================== --- clang/test/CXX/drs/dr9xx.cpp +++ clang/test/CXX/drs/dr9xx.cpp @@ -92,7 +92,7 @@ namespace dr977 { // dr977: yes enum E { e = E() }; -#ifndef _WIN32 +#if !defined(_WIN32) || defined(__MINGW32__) // expected-error@-2 {{invalid use of incomplete type 'E'}} // expected-note@-3 {{definition of 'dr977::E' is not complete until the closing '}'}} #endif
Index: clang/test/CXX/drs/dr9xx.cpp =================================================================== --- clang/test/CXX/drs/dr9xx.cpp +++ clang/test/CXX/drs/dr9xx.cpp @@ -92,7 +92,7 @@ namespace dr977 { // dr977: yes enum E { e = E() }; -#ifndef _WIN32 +#if !defined(_WIN32) || defined(__MINGW32__) // expected-error@-2 {{invalid use of incomplete type 'E'}} // expected-note@-3 {{definition of 'dr977::E' is not complete until the closing '}'}} #endif
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits