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
This commit is contained in:
Mark Mitchell 2003-07-11 08:53:59 +00:00 committed by Mark Mitchell
parent a6b602cafd
commit 87ca53f644
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,8 @@
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.

View File

@ -0,0 +1,11 @@
template <bool> struct A {};
template <bool> struct B
{
void foo()
{
const int i=0;
typedef A< i<=1 > C;
typedef A< i<=2 > C;
}
};