Temporary header file '/tmp/vOMEfBbYaU/dump1.h' with the following content will be compiled to create GCC translation unit dump:

  // add defines
  #define __STDC_VERSION__ 201710L
#define _GXX_NULLPTR_T
#define CLUTTER_ENABLE_COMPOSITOR_API 1
#define _REGEX_NELTS(n)
#define _Atomic
#define PACKED
#define getaddrinfo_a(a,b,c,d)

  // add includes
  #include "/usr/include/stdlib.h"
  #include "/usr/include/stdio.h"
  #include "/usr/include/pcp/pmhttp.h"
  #include "/usr/include/pcp/pmjson.h"

  // add classes
  _G_fpos64_t* tmp_add_class_0;
  _G_fpos_t* tmp_add_class_1;
  _IO_cookie_io_functions_t* tmp_add_class_2;
  json_metric_desc* tmp_add_class_3;

The GCC parameters:
  gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/vOMEfBbYaU/dump1.h"

In file included from /tmp/vOMEfBbYaU/dump1.h:15:
/usr/include/pcp/pmjson.h:42:5: error: ‘pmAtomValue’ does not name a type
   42 |     pmAtomValue   values;               /* metric value */
      |     ^~~~~~~~~~~
/usr/include/pcp/pmjson.h:47:47: error: ‘pmInDom’ has not been declared
   47 | extern int pmjsonGet(json_metric_desc *, int, pmInDom, json_get, void *);
      |                                               ^~~~~~~
/usr/include/pcp/pmjson.h:50:58: error: ‘pmInDom’ has not been declared
   50 | extern int pmjsonInitIndom(int, json_metric_desc *, int, pmInDom);
      |                                                          ^~~~~~~

