Commit 861a2c39 by Giovanni Bajo

re PR c++/14246 (Problems with templates, ice in write_template_arg_literal)

	PR c++/14246
	* g++.dg/other/crash-3.C: New test.

From-SVN: r78479
parent 3cc8f587
2004-02-26 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/14246
* g++.dg/other/crash-3.C: New test.
2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* g++.dg/opt/inline4.C (dg-final): Robustify regexp.
......
// { dg-do compile }
// { dg-options "-g" }
// Contributed by: <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
// and Niall Douglas <s_gccbugzilla at nedprod dot com>
// PR c++/14246: ice in write_template_arg_literal while mangling boolean
// expressions.
namespace N1 {
template <typename T>
struct A {
enum { Yes = (sizeof(T) == 1) };
};
template<bool T>
struct B {
void foo(void);
};
template struct B< !A<int>::Yes >;
}
namespace N2 {
template<bool> struct A {};
A<!false> a;
}
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