public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12665] New: Valid friend declaration erroneously rejected
@ 2003-10-17 20:00 bagnara at cs dot unipr dot it
2003-10-17 20:03 ` [Bug c++/12665] " bagnara at cs dot unipr dot it
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: bagnara at cs dot unipr dot it @ 2003-10-17 20:00 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=12665
Summary: Valid friend declaration erroneously rejected
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bagnara at cs dot unipr dot it
CC: gcc-bugs at gcc dot gnu dot org
The attached program gives:
$ g++ -c -v bug.cc
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Configured with: ../gcc-3.3.2/configure --prefix=/usr/local
Thread model: posix
gcc version 3.3.2
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/cc1plus -quiet -v -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 -D_GNU_SOURCE bug.cc -D__GNUG__=3
-quiet -dumpbase bug.cc -auxbase bug -version -o /tmp/cchKwbUI.s
GNU C++ version 3.3.2 (i686-pc-linux-gnu)
compiled by GNU C version 3.3.2.
GGC heuristics: --param ggc-min-expand=90 --param ggc-min-heapsize=113178
ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include/c++/3.3.2
/usr/local/include/c++/3.3.2/i686-pc-linux-gnu
/usr/local/include/c++/3.3.2/backward
/usr/local/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include
/usr/include
End of search list.
bug.cc: In instantiation of `C<int>':
bug.cc:18: instantiated from here
bug.cc:15: error: `foo' was not declared in this scope
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/12665] Valid friend declaration erroneously rejected
2003-10-17 20:00 [Bug c++/12665] New: Valid friend declaration erroneously rejected bagnara at cs dot unipr dot it
@ 2003-10-17 20:03 ` bagnara at cs dot unipr dot it
2003-10-17 20:25 ` bangerth at dealii dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bagnara at cs dot unipr dot it @ 2003-10-17 20:03 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=12665
------- Additional Comments From bagnara at cs dot unipr dot it 2003-10-17 20:00 -------
Created an attachment (id=4951)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4951&action=view)
Small program witnessing the problem.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/12665] Valid friend declaration erroneously rejected
2003-10-17 20:00 [Bug c++/12665] New: Valid friend declaration erroneously rejected bagnara at cs dot unipr dot it
2003-10-17 20:03 ` [Bug c++/12665] " bagnara at cs dot unipr dot it
@ 2003-10-17 20:25 ` bangerth at dealii dot org
2003-10-17 20:52 ` bagnara at cs dot unipr dot it
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bangerth at dealii dot org @ 2003-10-17 20:25 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=12665
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4
------- Additional Comments From bangerth at dealii dot org 2003-10-17 20:03 -------
Confirmed, but this is already fixed on mainline due to Kriang's
untiring efforts to stomp friendship bugs.
W.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/12665] Valid friend declaration erroneously rejected
2003-10-17 20:00 [Bug c++/12665] New: Valid friend declaration erroneously rejected bagnara at cs dot unipr dot it
2003-10-17 20:03 ` [Bug c++/12665] " bagnara at cs dot unipr dot it
2003-10-17 20:25 ` bangerth at dealii dot org
@ 2003-10-17 20:52 ` bagnara at cs dot unipr dot it
2003-10-17 21:03 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bagnara at cs dot unipr dot it @ 2003-10-17 20:52 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=12665
bagnara at cs dot unipr dot it changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|FIXED |
------- Additional Comments From bagnara at cs dot unipr dot it 2003-10-17 20:27 -------
bangerth at dealii dot org wrote:
> Confirmed, but this is already fixed on mainline due to Kriang's
> untiring efforts to stomp friendship bugs.
True, but this is a showstopper for me as I have been unable to find any
viable workaround. As 3.4 will not be released before Spring 2004,
this is not a nice situation. Of course, if I am the only one
on Earth to have this problem I guess I will have to live with it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/12665] Valid friend declaration erroneously rejected
2003-10-17 20:00 [Bug c++/12665] New: Valid friend declaration erroneously rejected bagnara at cs dot unipr dot it
` (2 preceding siblings ...)
2003-10-17 20:52 ` bagnara at cs dot unipr dot it
@ 2003-10-17 21:03 ` pinskia at gcc dot gnu dot org
2003-10-17 22:16 ` bangerth at dealii dot org
2003-10-17 22:37 ` bagnara at cs dot unipr dot it
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 21:03 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=12665
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Keywords| |rejects-valid
Resolution| |FIXED
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-17 21:01 -------
Closing as most likely there will not be another 3.3.x based compiler and this is not a regression.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/12665] Valid friend declaration erroneously rejected
2003-10-17 20:00 [Bug c++/12665] New: Valid friend declaration erroneously rejected bagnara at cs dot unipr dot it
` (3 preceding siblings ...)
2003-10-17 21:03 ` pinskia at gcc dot gnu dot org
@ 2003-10-17 22:16 ` bangerth at dealii dot org
2003-10-17 22:37 ` bagnara at cs dot unipr dot it
5 siblings, 0 replies; 7+ messages in thread
From: bangerth at dealii dot org @ 2003-10-17 22:16 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=12665
------- Additional Comments From bangerth at dealii dot org 2003-10-17 22:01 -------
What's wrong with
template <typename S> friend void N::foo(S);
?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/12665] Valid friend declaration erroneously rejected
2003-10-17 20:00 [Bug c++/12665] New: Valid friend declaration erroneously rejected bagnara at cs dot unipr dot it
` (4 preceding siblings ...)
2003-10-17 22:16 ` bangerth at dealii dot org
@ 2003-10-17 22:37 ` bagnara at cs dot unipr dot it
5 siblings, 0 replies; 7+ messages in thread
From: bagnara at cs dot unipr dot it @ 2003-10-17 22:37 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=12665
------- Additional Comments From bagnara at cs dot unipr dot it 2003-10-17 22:16 -------
It is a temporary workaround I can live with.
Thanks!
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-10-17 22:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-17 20:00 [Bug c++/12665] New: Valid friend declaration erroneously rejected bagnara at cs dot unipr dot it
2003-10-17 20:03 ` [Bug c++/12665] " bagnara at cs dot unipr dot it
2003-10-17 20:25 ` bangerth at dealii dot org
2003-10-17 20:52 ` bagnara at cs dot unipr dot it
2003-10-17 21:03 ` pinskia at gcc dot gnu dot org
2003-10-17 22:16 ` bangerth at dealii dot org
2003-10-17 22:37 ` bagnara at cs dot unipr dot it
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).