[gnu.g++.bug] typo in latest GNU C++ 1.35.0

tiemann@YAHI.STANFORD.EDU (Michael Tiemann) (04/17/89)

Some people observed a problem with the latest (1.35.0-) GNU C++ going
into an infinite loop.  I do not observe that behavior on the Sun4,
and I cannot properly debug the problem on the VAX due to file
permissions.  Can someone who has seen this problem let me know if
this is the fix?  Thanks,

diff -c2 cplus-cvt.c~ cplus-cvt.c
*** cplus-cvt.c~	Sun Apr  9 15:42:41 1989
--- cplus-cvt.c	Sun Apr 16 19:29:24 1989
***************
*** 1226,1230 ****
    if (first_arg != expr)
      {
!       expr = build_up_reference (build_reference_type (TREE_TYPE (expr), expr));
        TREE_VALUE (TREE_OPERAND (rval, 1)) = build_unary_op (ADDR_EXPR, expr, 0);
      }
--- 1226,1230 ----
    if (first_arg != expr)
      {
!       expr = build_up_reference (build_reference_type (TREE_TYPE (expr)), expr);
        TREE_VALUE (TREE_OPERAND (rval, 1)) = build_unary_op (ADDR_EXPR, expr, 0);
      }
yahi% 

Michael

zhao@wiener.usc.edu (04/18/89)

In article <8904170232.AA06226@yahi.stanford.edu> tiemann@lurch.stanford.edu writes:
>           Can someone who has seen this problem let me know if
>this is the fix?  Thanks,
>

Yes. The patch fixes the problem when g++ compiles Ratinal.cc in
libg++-1.34.0.