This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/30280] New: SIGSEGV on operator==(valarray<bool>, bool)
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Dec 2006 19:46:32 -0000
- Subject: [Bug libstdc++/30280] New: SIGSEGV on operator==(valarray<bool>, bool)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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
- Follow-Ups:
- [Bug libstdc++/30280] SIGSEGV on operator==(valarray<bool>, bool)
- From: pinskia at gcc dot gnu dot org
- [Bug libstdc++/30280] SIGSEGV on operator==(valarray<bool>, bool)
- From: sebor at roguewave dot com
- [Bug libstdc++/30280] SIGSEGV on operator==(valarray<bool>, bool)
- From: pcarlini at suse dot de
- [Bug libstdc++/30280] SIGSEGV on operator==(valarray<bool>, bool)
- From: ebotcazou at gcc dot gnu dot org
- [Bug libstdc++/30280] SIGSEGV on operator==(valarray<bool>, bool)
- From: sebor at roguewave dot com
- [Bug libstdc++/30280] SIGSEGV on operator==(valarray<bool>, bool)
- From: pcarlini at suse dot de
- [Bug libstdc++/30280] SIGSEGV on operator==(valarray<bool>, bool)
- From: ebotcazou at gcc dot gnu dot org
- [Bug libstdc++/30280] SIGSEGV on operator==(valarray<bool>, bool)
- From: gdr at integrable-solutions dot net
- [Bug libstdc++/30280] SIGSEGV on operator==(valarray<bool>, bool)
- From: pinskia at gmail dot com
- [Bug libstdc++/30280] SIGSEGV on operator==(valarray<bool>, bool)
- From: sebor at roguewave dot com
- [Bug libstdc++/30280] SIGSEGV on operator==(valarray<bool>, bool)
- From: pinskia at gcc dot gnu dot org
- [Bug target/30280] SIGSEGV on operator==(valarray<bool>, bool)
- From: pinskia at gcc dot gnu dot org
- [Bug target/30280] SIGSEGV on operator==(valarray<bool>, bool)
- From: gdr at integrable-solutions dot net