This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/26912] [4.0/4.1/4.2 Regression] friend const member function specialization fails to compile



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]