<div dir="ltr">Just out of curiosity, I have noticed that Clang currently allows the following program:<div><br></div><div>template<typename T> T f() { return 13; }<br></div><div>template int f() { return 1; }<br></div>

<div><br></div><div style>It essentially parses the body of the explicit instantiation only to ignore it.</div><div style>Was this a conscious decision?</div><div style><br></div><div style>GCC 4.6.3 rejects the program with "expected ‘;’ before ‘{’ token".</div>

<div style><br></div><div style>Thanks,</div><div style>-- Larisse.</div><div style><br></div></div>