Bug 9235 - Re: [3.3/3.4 regression] unary minus for valarrays broken
Summary: Re: [3.3/3.4 regression] unary minus for valarrays broken
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: pending (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-08 15:16 UTC by Gabriel Dos Reis
Modified: 2004-01-17 04:22 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Dos Reis 2003-01-08 15:16:01 UTC
 reichelt@igpm.rwth-aachen.de writes:
 
 [...]
 
 | I think that Gaby's patch
 | 
 | http://gcc.gnu.org/ml/gcc-patches/2002-08/msg00197.html
 | 
 | caused the regression, since the patch below fixes the
 | problem for me. (I didn't do a bootstrap or regression
 | tests, though.)
 | >How-To-Repeat:
 | g++ -c
 | >Fix:
 | ===========================================================
 | --- gcc-old/libstdc++-v3/include/bits/valarray_meta.h	Sat Jan  4 01:37:31 2003
 | +++ gcc-new/libstdc++-v3/include/bits/valarray_meta.h	Wed Jan  8 23:26:44 2003
 | @@ -457,7 +457,7 @@ namespace std
 |        _UnBase(const _Arg& __e) : _M_expr(__e) {}
 |  
 |        value_type operator[](size_t __i) const
 | -      { return _M_expr[__i]; }
 | +      { return _Oper() (_M_expr[__i]); }
 
 
 This analysis is correct.  Patch approved.
 
 Thanks!
 
 -- Gaby

Release:
unknown
Comment 1 Christian Ehrhardt 2003-01-14 00:10:23 UTC
State-Changed-From-To: open->closed
State-Changed-Why: Mail picked up by gnats.