This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26912] [4.0/4.1/4.2 Regression] friend const member function specialization fails to compile
- 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: 29 Mar 2006 09:32:16 -0000
- Subject: [Bug c++/26912] [4.0/4.1/4.2 Regression] friend const member function specialization fails to compile
- References: <bug-26912-12431@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2006-03-29 09:32 -------
Confirmed.
struct Foo {
template<class T> int func() ;
};
class Bar {
friend int Foo::func<int>() const ; // line 6
};
is also invalidly accepted.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |accepts-invalid, rejects-
| |valid
Known to fail| |3.3.5 4.0.3 4.1.0 4.2.0
Known to work| |3.4.6
Last reconfirmed|0000-00-00 00:00:00 |2006-03-29 09:32:16
date| |
Summary|friend const member function|[4.0/4.1/4.2 Regression]
|specialization fails to |friend const member function
|compile |specialization fails to
| |compile
Target Milestone|--- |4.1.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26912