[Bug c++/34870] template not instantiated for argument-dependent lookup
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Dec 30 11:47:00 GMT 2008
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-12-30 11:44 -------
IMHO the friend declaration isn't a declaration for func.
At least it shouldn't inject the name into Foo<T>.
EDG agrees with me here:
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.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|rejects-valid |accepts-invalid
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34870
More information about the Gcc-bugs
mailing list