[Bug c++/12665] New: Valid friend declaration erroneously rejected

bagnara at cs dot unipr dot it gcc-bugzilla@gcc.gnu.org
Fri Oct 17 20:00:00 GMT 2003


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



More information about the Gcc-bugs mailing list