Article View: gnu.g++.bug
Article #1708Bug report: g++ 1.32: missing } causes g++ to loop forever
From: Ken Yap
Date: Fri, 24 Feb 1989 18:46
Date: Fri, 24 Feb 1989 18:46
52 lines
1481 bytes
1481 bytes
Summary:
g++ 1.32 spins its wheels after detecting EOF in this program.
Configuration:
tm.h = tm-sun3.h
md = m68k.md
aux-output.c = output-m68k.c
sun 3-50, Sun Unix 3.4
Session log:
dubhe.cs.rochester.edu% g++ -c -v bug2.cc
g++ version 1.32.0
/usr/su/lib/gcc-cpp+ -+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix bug2.cc /tmp/cca19701.cpp
GNU CPP version 1.32.0
/usr/su/lib/gcc-c++ /tmp/cca19701.cpp -quiet -dumpbase bug2.cc -noreg -version -o /tmp/cca19701.s
GNU C++ version 1.32.0 (68k, MIT syntax) compiled by CC.
In function int main (int, char **):
bug2.cc:28: parse error at end of input
^Cdubhe.cs.rochester.edu%
Program:
#include <stream.h>
main(int argc, char *argv[])
{
register int i, f;
extern int optind;
extern char *optarg;
while ((i = getopt(argc, argv, "t:")) != EOF)
{
switch(i)
{
case 't':
f = 0;
for ( ; *optarg != '\0'; ++optarg)
{
switch (*optarg)
{
default: ;
}
break;
default:
cerr << form("Unknown option '%c' ignored\n", i);
break;
}
}
}
Technical Details
Message-ID:
<8902241846.AA19721@dubhe.cs.rochester.edu>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!CS.ROCHESTER.EDU!kenShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!CS.ROCHESTER.EDU!ken From: ken@CS.ROCHESTER.EDU (Ken Yap) Newsgroups: gnu.g++.bug Subject: Bug report: g++ 1.32: missing } causes g++ to loop forever Message-ID: <8902241846.AA19721@dubhe.cs.rochester.edu> Date: 24 Feb 89 18:46:34 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 52