public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11782] confusing error messages
2003-08-03 13:08 [Bug c++/11782] New: confusing error messages igodard at pacbell dot net
@ 2003-08-03 13:08 ` igodard at pacbell dot net
2003-08-03 13:09 ` igodard at pacbell dot net
2003-08-05 16:24 ` lerdsuwa at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: igodard at pacbell dot net @ 2003-08-03 13:08 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11782
------- Additional Comments From igodard at pacbell dot net 2003-08-03 13:08 -------
Created an attachment (id=4554)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4554&action=view)
Compiler output (-v -save-temps)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/11782] New: confusing error messages
@ 2003-08-03 13:08 igodard at pacbell dot net
2003-08-03 13:08 ` [Bug c++/11782] " igodard at pacbell dot net
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: igodard at pacbell dot net @ 2003-08-03 13:08 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11782
Summary: confusing error messages
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
The code is trying to make *any* instance of template Foo be a friend of class Bar. In the original code Foo had several arguments, and the messages complaining about "partial specialization" led me down a merry chase trying to figure out which arguments were spcialized and which were not, when to all appearances all were. In this reduced case there's only one argument, but the compiler message still refers to "partial". It's not clear (to me) whether code this counts as "all specialized" or "non specialized", but it is surely not "partial".
Incidentally, how *do* you make a template (not an instance) be a friend? I still haven't figured it out despite massive syntax poking. Or is this not implemented?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/11782] confusing error messages
2003-08-03 13:08 [Bug c++/11782] New: confusing error messages igodard at pacbell dot net
2003-08-03 13:08 ` [Bug c++/11782] " igodard at pacbell dot net
@ 2003-08-03 13:09 ` igodard at pacbell dot net
2003-08-05 16:24 ` lerdsuwa at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: igodard at pacbell dot net @ 2003-08-03 13:09 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11782
------- Additional Comments From igodard at pacbell dot net 2003-08-03 13:09 -------
Created an attachment (id=4555)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4555&action=view)
source code
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/11782] confusing error messages
2003-08-03 13:08 [Bug c++/11782] New: confusing error messages igodard at pacbell dot net
2003-08-03 13:08 ` [Bug c++/11782] " igodard at pacbell dot net
2003-08-03 13:09 ` igodard at pacbell dot net
@ 2003-08-05 16:24 ` lerdsuwa at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2003-08-05 16:24 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11782
lerdsuwa at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2003-08-05 16:24 -------
The following should work. I tested it with several versions of GCC from 2.95
to 3.3.
template<typename U> class Foo { };
class Bar {
template<typename U> friend class Foo;
};
int main()
{
}
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-08-05 16:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-03 13:08 [Bug c++/11782] New: confusing error messages igodard at pacbell dot net
2003-08-03 13:08 ` [Bug c++/11782] " igodard at pacbell dot net
2003-08-03 13:09 ` igodard at pacbell dot net
2003-08-05 16:24 ` lerdsuwa 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).