fork(1) download
  1. #include <iostream>
  2. #include <stdlib.h> /* malloc, free, rand */
  3. using namespace std;
  4.  
  5. class Pool{};
  6.  
  7. struct FE{
  8. static Pool pool;
  9. };
  10.  
  11. Pool FE::pool;
  12.  
  13. int main() {
  14. Pool FE::* pmd = &FE::pool;
  15. return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:14:24: error: cannot convert ‘Pool*’ to ‘Pool FE::*’ in initialization
  Pool FE::* pmd = &FE::pool;
                        ^
prog.cpp:14:13: warning: unused variable ‘pmd’ [-Wunused-variable]
  Pool FE::* pmd = &FE::pool;
             ^
stdout
Standard output is empty