Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Ron Guilmette
Thu, 27 Apr 1989 23:53
misleading error messages in G++ 1.35.0-
Author: Ron Guilmette
Date: Thu, 27 Apr 1989 23:53
Date: Thu, 27 Apr 1989 23:53
31 lines
1363 bytes
1363 bytes
When the following code is compiled with G++ 1.35.0/Sun3, you
get the error message shown below which says that a float was
expected. That's wrong. A double was expected. Apparently
the compiler doesn't know the difference.
----------------------------------------------------------------
// Check that type-mismatch messages are reasonable
int function (double d)
{
return 0;
}
struct s {
} s_object;
int main ()
{
function (s_object);
return 0;
}
--------------------------------------------------------------------
/usr/local/src/src/g++/build/sun3/1.35-.0-.0/g++ -B/usr/local/src/src/g++/build/sun3/1.35-.0-.0/ -Wall -Wwrite-strings -S -v s001.C
In function int main ():
s001.C:13: aggregate value used where a float was expected
// Ron Guilmette - MCC - Experimental Systems Kit Project
// 3500 West Balcones Center Drive, Austin, TX 78759 - (512)338-3740
// ARPA: rfg@mcc.com
// UUCP: {rutgers,uunet,gatech,ames,pyramid}!cs.utexas.edu!pp!rfg
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