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:
parent
222a2f1afb
commit
e5e95ba046
@ -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>
|
2003-12-30 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
* g++.dg/abi/vbase10.C: XFAIL on arm*-*-*.
|
* g++.dg/abi/vbase10.C: XFAIL on arm*-*-*.
|
||||||
|
21
gcc/testsuite/g++.dg/template/crash16.C
Normal file
21
gcc/testsuite/g++.dg/template/crash16.C
Normal 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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user