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

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