Error compiling with GNU C++ 6 headers

I’ve found that PGI 16.10 does not support gcc-6, and it works fine with gcc-5.4.0. What I have done to solve this problem is to build a gcc-5.4.0 on my home folder and then configure PGI compiler with the gcc 5.4.0.

The configuration process could be found at C++11 Header Files

I would like to close this problem but I don’t know how to do that. Sorry for the inconvenience.