Thread View: gnu.g++.bug
1 messages
1 total messages
Started by James Clark
Fri, 12 May 1989 09:03
spurious warning
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads