public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/30280]  New: SIGSEGV on operator==(valarray<bool>, bool)
@ 2006-12-22 19:46 sebor at roguewave dot com
  2006-12-22 19:52 ` [Bug libstdc++/30280] " pinskia at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 17+ messages in thread
From: sebor at roguewave dot com @ 2006-12-22 19:46 UTC (permalink / raw)
  To: gcc-bugs

The (strictly speaking ill-formed) program below successfully compiles with
gcc 4.1.0 but fails with a SIGSEGV at runtime. I think it should either fail
to compile or, if it compiles because of a gcc extension, it should also run
successfully to completion.

$ cat u.cpp && g++ u.cpp && ./a.out
#include <cassert>
#include <valarray>

int main ()
{
    std::valarray<bool> a (1);

    assert (a == false);
}

Segmentation Fault (core dumped)


-- 
           Summary: SIGSEGV on operator==(valarray<bool>, bool)
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sebor at roguewave dot com


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


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

end of thread, other threads:[~2008-11-30  9:45 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-22 19:46 [Bug libstdc++/30280] New: SIGSEGV on operator==(valarray<bool>, bool) sebor at roguewave dot com
2006-12-22 19:52 ` [Bug libstdc++/30280] " pinskia at gcc dot gnu dot org
2006-12-22 20:22 ` sebor at roguewave dot com
2006-12-22 21:42 ` pcarlini at suse dot de
2006-12-22 22:17 ` ebotcazou at gcc dot gnu dot org
2006-12-22 22:25 ` sebor at roguewave dot com
2006-12-22 23:01 ` pcarlini at suse dot de
2006-12-23  8:05 ` ebotcazou at gcc dot gnu dot org
2006-12-23 11:17 ` gdr at integrable-solutions dot net
2006-12-23 18:50   ` Andrew Pinski
2006-12-23 18:50 ` pinskia at gmail dot com
2006-12-23 20:46 ` sebor at roguewave dot com
2006-12-24  4:56 ` pinskia at gcc dot gnu dot org
2006-12-24  5:02 ` [Bug target/30280] " pinskia at gcc dot gnu dot org
2006-12-24  5:23 ` gdr at integrable-solutions dot net
2007-04-08 22:52 ` pinskia at gcc dot gnu dot org
2008-11-30  9:45 ` ebotcazou at gcc dot gnu dot 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).