Hi Karthik K.,
Can you provide the source code, the GCC compiler options and the Intel C++ compiler options you are using. It is a bit difficult to understand the issue without more detailed info.
I was able to reproduce the compilation problems using a GNU 6.0 compiler and icpc with a GNU 6.x reference compiler (this enables -std=c++14 by default).
I saw about a half dozen compilation problems, but I think there are only two actual problems (the others are duplicates or cascading errors from the orignal error).
(1) Reported as CMPLRS-42520.