------- Comment #3 from rguenth at gcc dot gnu dot org 2008-12-30 10:42 ------- EDG reports (in strict-ansi mode - otherwise the friend decl injects the name)
icpc -S t.C -strict_ansi t.C(12): error: identifier "func" is undefined func<int>(x); ^ t.C(12): error: type name is not allowed func<int>(x); ^ compilation aborted for t.C (code 2) with and without the "weird" decl. Which is IMHO correct. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34827