This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

C++ error message problem


The current mainline gcc seems to have major problems in the error
message generation.  Code which compiles without -Wall fails if the
option is given and the output looks very suspicious.

I've uploaded a test file (from Mozilla) at

	http://www.cygnus.com/~drepper/nsSocketTransport.ii.gz

Use it with

	gcc -c -O -fpermissive nsSocketTransport.ii -Wall

The output I get is this:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/drepper/mozilla/netwerk/base/src/nsSocketTransport.cpp:41:
../../../dist/include/nsNetUtil.h:91: warning: non-local function `nsresult NS_OpenURI (nsIChannel **,
nsIURI *, nsIIOService * = 0, nsILoadGroup * = 0, nsIInterfaceRequestor * = 0, unsigned int =
nsIChannel::LOAD_NORMAL, unsigned int = 0, unsigned int = 0)' uses anonymous type
../../../dist/include/nsNetUtil.h:150: warning: non-local function `nsresult NS_OpenURI (nsIInputStream
**, nsIURI *, nsIIOService * = 0, nsILoadGroup * = 0, nsIInterfaceRequestor * = 0, unsigned int =
nsIChannel::LOAD_NORMAL, unsigned int = 0, unsigned int = 0)' uses anonymous type
../../../dist/include/nsNetUtil.h:177: warning: non-local function `nsresult NS_OpenURI
(nsIStreamListener *, nsISupports *, nsIURI *, nsIIOService * = 0, nsILoadGroup * = 0,
nsIInterfaceRequestor * = 0, unsigned int = nsIChannel::LOAD_NORMAL, unsigned int = 0, unsigned int =
0)' uses anonymous type
../../../dist/include/nsNetUtil.h:332: warning: non-local function `nsresult NS_NewStreamLoader
(nsIStreamLoader **, nsIURI *, nsIStreamLoaderObserver *, nsISupports * = 0, nsILoadGroup * = 0,
nsIInterfaceRequestor * = 0, unsigned int = nsIChannel::LOAD_NORMAL, unsigned int = 0, unsigned int =
0)' uses anonymous type
/home/drepper/mozilla/netwerk/base/src/nsSocketTransport.cpp:156: sorry, not implemented: `tree_list' not supported by dump_decl
/home/drepper/mozilla/netwerk/base/src/nsSocketTransport.cpp: In method
`nsSocketTransport::nsSocketTransport ()':
##_@:1080320224: warning: member initializers for `{declaration error}'
/home/drepper/mozilla/netwerk/base/src/nsSocketTransport.h:214: warning:   and `PRInt32
nsSocketTransport::mPort'
/home/drepper/mozilla/netwerk/base/src/nsSocketTransport.cpp:156: warning:   will be re-ordered to
match declaration order
/home/drepper/mozilla/netwerk/base/src/nsSocketTransport.cpp:156: sorry, not implemented: `tree_list' not supported by dump_decl
##_@##@$@ :1080320352: warning: member initializers for `{declaration
error}'
/home/drepper/mozilla/netwerk/base/src/nsSocketTransport.h:225: warning:   and `PRInt32
nsSocketTransport::mProxyPort'
/home/drepper/mozilla/netwerk/base/src/nsSocketTransport.cpp:156: warning:   will be re-ordered to
match declaration order
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Please note the sixth line from the end.  Also, the failure to print
the types in the error message output functions seems to cause the
compilation to fail.  This should IMO not be the case.

This is on x86 but I guess this is a generic problem.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]