Article View: gnu.g++.bug
Article #703BUG in G++ 1.36.0 & 1.36.1
From: rfg
Date: Mon, 11 Dec 1989 04:44
Date: Mon, 11 Dec 1989 04:44
34 lines
1578 bytes
1578 bytes
The following example, taken directly from the new manual (9.1)
gets a rather odd error from G++ 1.36.0 and from 1.36.1. This
should not get any errors (odd or otherwise).
Script started on Sun Dec 10 20:38:36 1989
ics>att nl -ba namespace.C
1 // Example from Section 9.1 of the new C++ Reference Manual
2
3 struct stat {
4 // ...
5 };
6
7 int stat (struct stat *);
8
9 void f()
10 {
11 struct stat s; // `struct' needed to name struct
12 stat(&s); // call of the function stat()
13 }
ics>g++ -v -c namespace.C
gcc version 1.36.0 (based on GCC 1.36)
/usr/gnu/lib/gcc-cpp -+ -v -undef -D__GNUC__ -D__GNUG__ -D__cplusplus -Dunix -Di386 -Dsequent -D__unix__ -D__i386__ -D__sequent__ namespace.C /usr/tmp/cc012758.cpp
GNU CPP version 1.36
/usr/gnu/lib/gcc-cc1plus /usr/tmp/cc012758.cpp -quiet -dumpbase namespace.C -version -o /usr/tmp/cc012758.s
GNU C++ version 1.36.0 (based on GCC 1.36) (80386, BSD syntax) compiled by GNU C version 1.36.
default target switches: -m80387
namespace.C: In function void f ():
namespace.C:12: at this point in file
ics>exit
exit
script done on Sun Dec 10 20:39:26 1989
Technical Details
Message-ID:
<8912102044.aa12832@ICS.UCI.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!tut.cis.ohio-state.edu!ICS.UCI.EDU!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!tut.cis.ohio-state.edu!ICS.UCI.EDU!rfg From: rfg@ICS.UCI.EDU Newsgroups: gnu.g++.bug Subject: BUG in G++ 1.36.0 & 1.36.1 Message-ID: <8912102044.aa12832@ICS.UCI.EDU> Date: 11 Dec 89 04:44:35 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 34