c++: Fix null this pointer [PR 98624]
[gcc.git] / gcc / cp / module.cc
index 1fd0bcfe3eb5ec37f97be0b58a675c09eef4392c..3b224b616c11c7fa7796b882b48e7c9ad4d69f31 100644 (file)
@@ -3727,7 +3727,7 @@ class GTY((chain_next ("%h.parent"), for_user)) module_state {
   static cpp_macro *deferred_macro (cpp_reader *, location_t, cpp_hashnode *);
 
  public:
-  void write_location (bytes_out &, location_t);
+  static void write_location (bytes_out &, location_t);
   location_t read_location (bytes_in &) const;
 
  public: