New failing tests for g++
Klaus-Georg Adams
Klaus-Georg.Adams@chemie.uni-karlsruhe.de
Mon Jun 8 07:06:00 GMT 1998
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----------------
More information about the Gcc-bugs
mailing list