Compilation Error in g++ 4.3.4 compiler
<pre><code>#include &lt;iostream&gt; 
#include &lt;string.h&gt;
char* basename(const char* filname);
int main()
{
    return 0;
}
char *basename(const char* filename)
{
    char* base = (char *)filename;
    return base ;
}
</code></pre>

<p>compiling on g++ 4.1.2 20070115  (SUSE 10): No issue</p>

<p>compiling on g++ 4.3.4 (SUSE 11) gives following error</p>

<p>fileName : 9 :error:declaration of char* basename(const char*) throws different exception</p>

<p>fileName:3:error: from previous declaration char* basename(const char*) throw () .</p>

<p>Kindly tell me why this is happening , Is there is any Interface changed in g++ between these two release (if I remove inclusion of string.h then compilation success on both version of g++ ,Is any Interface change in string.h).</p>
