public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22047] New: friend declaration for typedef object
@ 2005-06-13 14:23 kumar dot mahesh at cognizant dot com
  2005-06-13 14:28 ` [Bug c++/22047] " pinskia at gcc dot gnu dot org
  2005-06-13 14:44 ` kumar dot mahesh at cognizant dot com
  0 siblings, 2 replies; 4+ messages in thread
From: kumar dot mahesh at cognizant dot com @ 2005-06-13 14:23 UTC (permalink / raw)
  To: gcc-bugs

template<class T> 
class T1{

public:
    typedef T1<T> td;
    friend td;
};

The above code is giving the below warning in forte6.2 compiler.
Warning:A "friend" declaration must specify a class or function.

FYI this code is working fine in forte4.2 compiler.
Please let me know the corrections to me made??

-- 
           Summary: friend declaration for typedef object
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kumar dot mahesh at cognizant dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22047


^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <bug-22047-10815@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-09-18 23:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-13 14:23 [Bug c++/22047] New: friend declaration for typedef object kumar dot mahesh at cognizant dot com
2005-06-13 14:28 ` [Bug c++/22047] " pinskia at gcc dot gnu dot org
2005-06-13 14:44 ` kumar dot mahesh at cognizant dot com
     [not found] <bug-22047-10815@http.gcc.gnu.org/bugzilla/>
2006-09-18 23:42 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).