This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38850] [4.2/4.3/4.4 Regression] Cannot find inline friend function in template class when called from within a template function
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2009 21:46:07 -0000
- Subject: [Bug c++/38850] [4.2/4.3/4.4 Regression] Cannot find inline friend function in template class when called from within a template function
- References: <bug-38850-17188@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from rguenth at gcc dot gnu dot org 2009-01-14 21:46 -------
>From a first look Max should be found during argument-dependent name-lookup.
EDG
confirms this theory. gcc 4.1 accepts this code.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |rejects-valid
Known to fail| |4.2.4 4.3.2 4.4.0
Known to work|4.3.1 |4.1.2
Last reconfirmed|0000-00-00 00:00:00 |2009-01-14 21:46:06
date| |
Summary|Cannot find inline friend |[4.2/4.3/4.4 Regression]
|function in template class |Cannot find inline friend
|when called from within a |function in template class
|template function |when called from within a
| |template function
Target Milestone|--- |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38850