No Subject

Utilisateur FNET bravier@dassault-aviation.fr
Fri Feb 6 08:31:00 GMT 1998


===============================================================================
This is a bug report for egcs-1.0.1/g++:
===============================================================================

Thierry Bravier              Dassault Aviation - DGT / DPR / DESA
78, Quai Marcel Dassault       F-92214 Saint-Cloud Cedex - France
Telephone : (33) 01 47 11 53 07   Telecopie : (33) 01 47 11 52 83
E-Mail :              mailto:thierry.bravier@dassault-aviation.fr

===============================================================================
Local configuration:
===============================================================================
% uname -a
SunOS scdprs20 5.5.1 Generic sun4u sparc SUNW,Ultra-2

-------------------------------------------------------------------------------
% egcs-g++ -v
Reading specs from /logiciel/GNU/LOCAL/gcc/egcs-1.0.1/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.23/specs
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)

-------------------------------------------------------------------------------
egcs-1.0.1 was installed with:

% SOURCES_EGCS=/logiciel/GNU/SOURCES/gcc/egcs-1.0.1/distrib
% LOCAL_EGCS=/logiciel/GNU/LOCAL/gcc/egcs-1.0.1
% OBJ_EGCS=/logiciel/commun/egcs-1.0.1.SunOS.5.5.1
% cd ${OBJ_EGCS}
% ${SOURCES_EGCS}/configure  \
   --prefix=${LOCAL_EGCS} \
   --with-local-prefix=${LOCAL_EGCS} \
   --with-gxx-include-dir=${LOCAL_EGCS}/include/g++
% gmake bootstrap CC=gcc
% gmake install

===============================================================================
Bug description and report:
===============================================================================
`int operator + (int, int)' is not a defined function,
its address cannot be taken.

When trying to take its address I get:
`operator +' not defined
which is correct.

I would expect the same kind of message when dealing with `::operator +'.

PS: Thank you for your great work, I hope this mail will help.
    Could you please let me know about this mail and its implications.

-------------------------------------------------------------------------------
% cat -n operator-2.cc
     1  static int (*f_correct_error_message) (int, int) = operator +;
     2  static int (*g_bug_in_error_message) (int, int) = ::operator +;

-------------------------------------------------------------------------------
% egcs-g++ -E operator-2.cc
# 1 "operator-2.cc"
static int (*f_correct_error_message) (int, int) = operator +;
static int (*g_bug_in_error_message) (int, int) = ::operator +;

-------------------------------------------------------------------------------
% egcs-g++ -c operator-2.cc
operator-2.cc:1: `operator +' not defined
operator-2.cc:2: undeclared variable `__pl' (first use here)

===============================================================================



More information about the Gcc-bugs mailing list