Commit 87ca53f6 by Mark Mitchell Committed by Mark Mitchell

re PR c++/8164 (ICE when using different const expressions as template parameter)

	PR c++/8164
	* decl.c (duplicate_decls): Avoid mangling names unnecessarily.

	PR c++/8164
	* g++.dg/template/nontype2.C: New test.

	PR c++/10558
	* g++.dg/parse/template8.C: New test.

From-SVN: r69229
parent a6b602ca
2003-07-11 Mark Mitchell <mark@codesourcery.com>
PR c++/8164
* g++.dg/template/nontype2.C: New test.
PR c++/10558
* g++.dg/parse/template8.C: New test.
......
template <bool> struct A {};
template <bool> struct B
{
void foo()
{
const int i=0;
typedef A< i<=1 > C;
typedef A< i<=2 > C;
}
};
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