Thread View: gnu.g++.bug
2 messages
2 total messages
Started by Stephen Ng
Thu, 27 Apr 1989 14:55
Found compiler hang bug
Author: Stephen Ng
Date: Thu, 27 Apr 1989 14:55
Date: Thu, 27 Apr 1989 14:55
21 lines
691 bytes
691 bytes
dear gnu,
i found a bug that hangs g++ version 1.34.0. it is:
int foo();
class C {
friend int foo();
};
bar()
{
foo();
}
io get this to work, remove the first declaration of int foo().
i believe our C++ code is correct; the two declarations are not contradictory.
stephen ng
Re: Found compiler hang bug
Author: Doug Schmidt
Date: Fri, 28 Apr 1989 03:11
Date: Fri, 28 Apr 1989 03:11
35 lines
1423 bytes
1423 bytes
In article <8904271456.AA18302@lotus.lotus.com> lotus!steveng@GARP.MIT.EDU (Stephen Ng) writes:
++
++ dear gnu,
++
++ i found a bug that hangs g++ version 1.34.0. it is:
++
++ int foo();
++ class C {
++ friend int foo();
++ };
++
++ bar()
++ {
++ foo();
++ }
++
++
This does not hang with g++ 1.35, although I'm not sure if the message is
correct:
----------------------------------------
g++ bug.c
bug.c:3: friend `foo' implicitly overloaded
bug.c:1: after declaration of non-overloaded `int foo ()'
----------------------------------------
Anyone have any comments?
Doug
--
On a clear day, under blue skies, there is no need to seek.
And asking about Buddha +------------------------+
Is like proclaiming innocence, | schmidt@ics.uci.edu |
With loot in your pocket. | office: (714) 856-4043 |
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