Commit cb74ad01 authored by reichelt's avatar reichelt
Browse files

PR c++/10079

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


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75246 138bc75d-0d04-0410-961f-82ee72b054a4
parent 9fe4f442
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*-*-*.
......
// { 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);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment