re PR c++/10079 (ICE (segfault) while substitute return type containing unresolved qualified id)

PR c++/10079
	* g++.dg/template/crash16.C: New test.

From-SVN: r75246
This commit is contained in:
Volker Reichelt 2003-12-30 21:42:39 +00:00 committed by Volker Reichelt
parent 222a2f1afb
commit e5e95ba046
2 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-12-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/10079
* g++.dg/template/crash16.C: New test.
2003-12-30 Mark Mitchell <mark@codesourcery.com>
* g++.dg/abi/vbase10.C: XFAIL on arm*-*-*.

View File

@ -0,0 +1,21 @@
// { dg-do compile }
// Origin: Alexander Stippler <stip@mathematik.uni-ulm.de>
// PR c++/10079
template <bool> struct A {};
template <typename> struct B
{
enum { e };
};
template <typename T> A<(B<T>::e && 0)> foo(T) {}
template <typename T> void foo(B<T>) {}
void bar()
{
B<int> b;
foo(b);
}