exception specification of overriding function is more lax than base version : <p>I want to custom an Exception class, here's the code:</p>

<pre><code>class TestException : std::exception{
  public:
  const char *what() const override {
    return "TestException";
  }
};
</code></pre>

<p>I used Clion and the IDE give me a warning on the function <code>what()</code>:<code>exception specification of overriding function is more lax than base version</code></p>

<p>But if I build the code with gcc, there's no warning came out.
I used c++ 14, gcc 6.5.0</p>

<p>Can anybody help to explain what does the warning mean and can I just ignore it?</p>
