[flang-commits] [flang] 36f93fc - [flang] Fix clang build (struct/class mismatch warning)

peter klausler via flang-commits flang-commits at lists.llvm.org
Fri Jun 18 15:13:00 PDT 2021


Author: peter klausler
Date: 2021-06-18T15:12:51-07:00
New Revision: 36f93fc594ea168d541bb2fde95014a5502bef88

URL: https://github.com/llvm/llvm-project/commit/36f93fc594ea168d541bb2fde95014a5502bef88
DIFF: https://github.com/llvm/llvm-project/commit/36f93fc594ea168d541bb2fde95014a5502bef88.diff

LOG: [flang] Fix clang build (struct/class mismatch warning)

A recent patch changed a struct into a class, but missed a
forward definition.  GCC didn't warn, but clang does.  Fix.

Added: 
    

Modified: 
    flang/runtime/type-info.h

Removed: 
    


################################################################################
diff  --git a/flang/runtime/type-info.h b/flang/runtime/type-info.h
index 21c955dd0ec8b..78159c9bcd10a 100644
--- a/flang/runtime/type-info.h
+++ b/flang/runtime/type-info.h
@@ -20,7 +20,7 @@
 
 namespace Fortran::runtime::typeInfo {
 
-struct Component;
+class Component;
 
 class DerivedType {
 public:


        


More information about the flang-commits mailing list