This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
New failing tests for g++
- To: robertl at dgii dot com
- Subject: New failing tests for g++
- From: Klaus-Georg Adams <Klaus-Georg dot Adams at chemie dot uni-karlsruhe dot de>
- Date: Mon, 8 Jun 1998 15:58:22 +0200
- Cc: egcs-bugs at cygnus dot com
Hi Robert,
I have a couple of simple testcases for egcs which fail for me
(i686-pc-linux-gnulibc1). I had submitted two of them already to
egcs-bugs, but you didn't include them in g++.robertl. Maybe you can
take a look.
Thanks, kga
--
-------------------------------------------------------------------------
Klaus-Georg Adams Email: Klaus-Georg.Adams@chemie.uni-karlsruhe.de
Institut f. Anorg. Chemie, Lehrstuhl II Tel: 49(0)721 608 3485
Universität Karlsruhe, D-76128 Karlsruhe
-------------------------------------------------------------------------
---------snip----------------
// Build don't link:
// Gives ICE 109
int main()
{
try {
}
catch (bad_alloc) { // ERROR - parse error
return 1;
}
return 0;
}
---------snip----------------
// Build don't link:
// Gives ICE
#include <list>
#include <functional>
#include <algorithm>
#include <cassert>
int main()
{
list<int> l;
l.push_back(1);
l.push_back(2);
list<int>::iterator it =
find_if( l.begin(), l.end(),
// This is a typo, it should be bind2nd, but an
// ICE is not a very helpful diagnostic!
binder2nd( equal_to<int>(), 2 ) ); // ERROR -
assert( *(it) == 2 );
}
---------snip----------------
// Build don't link:
// Gives spurious warnings when compiled with -Wall
#include <hash_set>
std::hash_set<int> foo;
---------snip----------------