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
* [Bug c++/22047] friend declaration for typedef object
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 ` pinskia at gcc dot gnu dot org
2005-06-13 14:44 ` kumar dot mahesh at cognizant dot com
1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-13 14:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-13 14:28 -------
http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2003/n1520.pdf
Hmm, this is not valid C++89 but looks like it will become valid code in the newer C++ standard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22047
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/22047] friend declaration for typedef object
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
1 sibling, 0 replies; 4+ messages in thread
From: kumar dot mahesh at cognizant dot com @ 2005-06-13 14:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kumar dot mahesh at cognizant dot com 2005-06-13 14:44 -------
Subject: RE: friend declaration for typedef object
Means it does work in forte6.2?? is it???
Regards,
Maheshkumar P,
55432068,Vnet:62068,
OrangeUK
-----Original Message-----
From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org]
Sent: Monday, June 13, 2005 7:58 PM
To: Kumar, Mahesh (Cognizant)
Subject: [Bug c++/22047] friend declaration for typedef object
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-13 14:28 -------
http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2003/n1520.pdf
Hmm, this is not valid C++89 but looks like it will become valid code in the newer C++ standard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22047
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com
--
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).