Article View: gnu.g++.bug
Article #1992spurious warning
From: James Clark
Date: Fri, 12 May 1989 09:03
Date: Fri, 12 May 1989 09:03
31 lines
1355 bytes
1355 bytes
1.35.0- gives a spurious warning:
Script started on Fri May 12 09:58:32 1989
jclark% cat test.c
struct A {
A(int);
void operator=(int);
};
A foo(int x)
{
return x ? A(1) : A(0);
}
jclark% make test.o
/u/local/g++/g++ -B/u/local/g++/ -g -v -I. -sun4 -c test.c
g++ version 1.35.0-
/usr/local/lib/gcc-cpp -+ -v -I. -undef -D__GNU__ -D__GNUG__ -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ test.c /tmp/cca26538.cpp
GNU CPP version 1.35
/u/local/g++/cc1plus /tmp/cca26538.cpp -quiet -dumpbase test.c -noreg -version -G -o /tmp/cca26538.s
GNU C++ version 1.35.0- (sparc) compiled by GNU C version 1.35.
In function struct A foo (int):
test.c:8: warning: bitwise copy: `A' has a member with operator=()
test.c:8: warning: bitwise copy: `A' has a member with operator=()
as /tmp/cca26538.s -o test.o
/u/local/g++/g++: unrecognized option `-sun4'
jclark% exit
jclark%
script done on Fri May 12 09:58:48 1989
James Clark
jjc@jclark.uucp
Technical Details
Message-ID:
<8905120903.AA26542@jclark.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!UUNET.UU.NET!jclark!jjcShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!UUNET.UU.NET!jclark!jjc From: jclark!jjc@UUNET.UU.NET (James Clark) Newsgroups: gnu.g++.bug Subject: spurious warning Message-ID: <8905120903.AA26542@jclark.uucp> Date: 12 May 89 09:03:17 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 31