[Bug c++/34827] Weird name-lookup error
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Dec 30 10:43:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list