public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/51540] New: partial_sum (int *, int *, int *, multiplies < int >) does not use operator +(complex, complex)
@ 2011-12-13 23:07 giecrilj at stegny dot 2a.pl
  2011-12-14  0:06 ` [Bug libstdc++/51540] " redi at gcc dot gnu.org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: giecrilj at stegny dot 2a.pl @ 2011-12-13 23:07 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51540

             Bug #: 51540
           Summary: partial_sum (int *, int *, int *, multiplies < int >)
                    does not use operator +(complex, complex)
    Classification: Unclassified
           Product: gcc
           Version: 4.5.1
               URL: http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen
                    /a01567.html#a17bad49fa9fb1c5c41d019b16970fe9e
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: giecrilj@stegny.2a.pl
              Host: i586-suse-linux
            Target: i586-suse-linux
             Build: i586-suse-linux


The following code fails to run:

int main () 
{ 
  int x [02] = { 0, 01 }; 
::std ::partial_sum (x, x + 02, x, ::std ::multiplies < int > ()); 
assert (+x [01] == 01); 
 return +EXIT_SUCCESS; }

Actual result: 
int main(): Assertion `+x [01] == 01' failed.

Expected result: 
I do not know, 
as the documentation does not say which complex class should be used.
Maybe it should not compile at all.


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2011-12-18 22:35 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-13 23:07 [Bug libstdc++/51540] New: partial_sum (int *, int *, int *, multiplies < int >) does not use operator +(complex, complex) giecrilj at stegny dot 2a.pl
2011-12-14  0:06 ` [Bug libstdc++/51540] " redi at gcc dot gnu.org
2011-12-14  0:30 ` redi at gcc dot gnu.org
2011-12-14  7:16 ` giecrilj at stegny dot 2a.pl
2011-12-14  9:39 ` paolo.carlini at oracle dot com
2011-12-14 10:26 ` giecrilj at stegny dot 2a.pl
2011-12-14 10:59 ` paolo.carlini at oracle dot com
2011-12-14 11:05 ` redi at gcc dot gnu.org
2011-12-14 11:18 ` [Bug libstdc++/51540] doxygen documentation for partial_sum misleading redi at gcc dot gnu.org
2011-12-14 11:19 ` paolo.carlini at oracle dot com
2011-12-15  9:53 ` redi at gcc dot gnu.org
2011-12-15  9:56 ` redi at gcc dot gnu.org
2011-12-16 19:14 ` giecrilj at stegny dot 2a.pl
2011-12-16 20:17 ` paolo.carlini at oracle dot com
2011-12-16 20:33 ` giecrilj at stegny dot 2a.pl
2011-12-17 13:26 ` redi at gcc dot gnu.org
2011-12-17 13:33 ` redi at gcc dot gnu.org
2011-12-17 17:55 ` giecrilj at stegny dot 2a.pl
2011-12-18 22:35 ` redi at gcc dot gnu.org
2011-12-18 23:31 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).