[flang-commits] [flang] 6d555dd - [flang] Fix -Wmismatched-tags warning of NonTbpDefinedIoTable (NFC)

Jie Fu via flang-commits flang-commits at lists.llvm.org
Thu Apr 13 16:15:15 PDT 2023


Author: Jie Fu
Date: 2023-04-14T07:13:58+08:00
New Revision: 6d555dd53b017a05705dc3ddf4eba8b205d71abe

URL: https://github.com/llvm/llvm-project/commit/6d555dd53b017a05705dc3ddf4eba8b205d71abe
DIFF: https://github.com/llvm/llvm-project/commit/6d555dd53b017a05705dc3ddf4eba8b205d71abe.diff

LOG: [flang] Fix -Wmismatched-tags warning of NonTbpDefinedIoTable (NFC)

/Users/jiefu/llvm-project/flang/runtime/non-tbp-dio.h:41:1: error: 'NonTbpDefinedIoTable' defined as a struct here but previously declared as a class; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Werror,-Wmismatched-tags]
struct NonTbpDefinedIoTable {
^
/Users/jiefu/llvm-project/flang/include/flang/Runtime/io-api.h:26:1: note: did you mean struct here?
class NonTbpDefinedIoTable;
^~~~~
struct
1 error generated.

Added: 
    

Modified: 
    flang/include/flang/Runtime/io-api.h

Removed: 
    


################################################################################
diff  --git a/flang/include/flang/Runtime/io-api.h b/flang/include/flang/Runtime/io-api.h
index ae4b85136a191..e298ab4c53d4a 100644
--- a/flang/include/flang/Runtime/io-api.h
+++ b/flang/include/flang/Runtime/io-api.h
@@ -23,7 +23,7 @@ class Descriptor;
 
 namespace Fortran::runtime::io {
 
-class NonTbpDefinedIoTable;
+struct NonTbpDefinedIoTable;
 class NamelistGroup;
 class IoStatementState;
 using Cookie = IoStatementState *;


        


More information about the flang-commits mailing list